Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With controls
Message
 
 
To
15/10/2003 23:33:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00839111
Message ID:
00839112
Views:
26
You can use FOR EACH loop
FOR EACH oControl in thisform.pageframe1.page1.controls
  if oControl.value = 2
...
>Once upon a time I saw a code sample that used a construct that would step through the controls of a form but I can't seem to remember how it went. I want to do something like :
>
>with thisform.pageframe1.page1.controls
>if .value = 2
>do something
>endif
>endwith
>
>When using this construct I get an error that says controls is not an object. Can anyone point me to an article that explains how to do this?
>
>Thanks in advance.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform