In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Changing a column from EDIT to NOEDIT at runtime.

Xailer professional forum in English
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Changing a column from EDIT to NOEDIT at runtime.

Mensaje 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
Responder