Página 1 de 1

Changing a column from EDIT to NOEDIT at runtime.

Publicado: Lun Feb 18, 2008 3:13 pm
por ChrisGillard
I have a form with an ArrayBrowse on it.
In most situations the browse has nEditType = beGet on column1 & column 3
.... I have this code working fine
In some other situtuations I want to use this form with edit ONLY on Column
3
I have code some code which attempts to set Column1:nEditType to beNONE
::oArrayBrowse1:aCols[1]:nEditType := beNONE
logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
shows FALSE
This appears to work OK and IsMultipleEdit() returns FALSE
As soon as I issue the oArrayBrowse:Edit() call like this ....
::oArrayBrowse1:Edit()
logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
Shows TRUE
IsMultipleEdit() returns TRUE .... which upsets my PostEdit() code.
What is the reliable method of changing a column from EDIT to NOEDIT at
runtime.
Would really like some help on this please.
Regards
Chris Gillard