Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution.
Message
From
28/10/2006 13:17:37
 
 
To
27/10/2006 21:37:26
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01164946
Message ID:
01165287
Views:
9
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"
Previous
Reply
Map
View

Click here to load this message in the networking platform