Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iterate through all objects on form
Message
 
To
30/12/2008 14:56:39
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01370241
Message ID:
01370245
Views:
12
Hi Jay,
Use For Each and PemStatus, let's say you want to find all controls in a form with a VALID method, this
code will do it:

FOR EACH oControl IN ThisForm.Controls
IF PEMSTATUS(oControl, 'VALID',5)
MESSAGEBOX(oControl.Name)
ENDIF
ENDFOR

Good Luck

>How do I loop through all the objects on a form that have a specific method?
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Reply
Map
View

Click here to load this message in the networking platform