Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For command
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
For command
Miscellaneous
Thread ID:
01414931
Message ID:
01414931
Views:
94
I have several forms with many objects as below

form1.object1.enabled = .F.
form1.object2.enabled = .F.
form1.object3.enabled = .F.
... etc

I need to enabled these properties using for command

for myObj = 1 to 100 do

"form1.object" +myObj + ".enabled = .T.

endfor

Sometimes a form can have 5 objects, others can have 20, 55 , etc

How can I do to prevent errors with for command when and object does not exist ?
Next
Reply
Map
View

Click here to load this message in the networking platform