Try:
thisform.mEnableSave = .T.
mFormObject = [THISFORM.controls]
FOR EACH ocontrol IN (mFormObject)
IF INLIST(UPPER(oControl.baseClass),'TEXTBOX','EDITBOX','COMBOBOX','CHECKBOX')
BINDEVENT(oControl,'InteractiveChange',THISFORM,'mEnableSave')
ENDIF
ENDFOR
>I did try
>
>FOR EACH oControl IN THISFORM.Objects
>
> IF INLIST(UPPER(oControl.baseClass),'TEXTBOX','EDITBOX','COMBOBOX','CHECKBOX')
> BINDEVENT(oControl,'InteractiveChange',THISFORM,'mEnableSave')
> ENDIF
>ENDFOR
>
>This work, but when I try
>
>mFormControls = 'THISFORM.Controls'
>
>FOR EACH oControl IN &mFormControls
>
> IF INLIST(UPPER(oControl.baseClass),'TEXTBOX','EDITBOX','COMBOBOX','CHECKBOX')
> BINDEVENT(oControl,'InteractiveChange',THISFORM,'mEnableSave')
> ENDIF
>ENDFOR
>
>
>The error message of 'Nesting Error' Prompted.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"