Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution.
Message
From
27/10/2006 08:48:56
 
 
To
27/10/2006 07:39:30
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01164946
Message ID:
01164965
Views:
10
Maybe because it is Friday, but I cannot see anything obvious. In the form's init, try:
For Each oControl In This.Controls
   IF INLIST(UPPER(oControl.baseClass),'TEXTBOX','EDITBOX','COMBOBOX','CHECKBOX')
      BINDEVENT(oControl,'InteractiveChange',THISFORM,'mEnableSave')
   ENDIF
Endfor
>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.
.·*´¨)
.·`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
Next
Reply
Map
View

Click here to load this message in the networking platform