>How to perform substitution : thisform.objects in FOR EACH
>
>I try
>
>mFormObject = 'THISFORM.Objects'
>
>FOR EACH oControl IN &mformObject
> IF INLIST(UPPER(oControl.baseClass),'TEXTBOX','EDITBOX','COMBOBOX','CHECKBOX')
> BINDEVENT(oControl,'InteractiveChange',THISFORM,'mEnableSave')
> ENDIF
>ENDFOR
>
>
>But get error message : nesting error.
>
>
>TIA.
There appears to be no nesting error here (but it WOULD help if you indicated at which line it occurs).
Quite often nesting errors are knock-on effects from other code "Brackets", even mis-matched With ... EndWith, elsewhere in the code, higher up, and may have nothing to do with the line on which they are reported. Check the rest of your code.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.