Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if a control allows entry
Message
From
05/01/2009 14:33:53
 
 
To
05/01/2009 14:16:23
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01371118
Message ID:
01371132
Views:
14
>If I'm looping through all the controls on a form, is there something I can check to see if it is a "valid" control, in that it can accept entry from the user? I do not want labels, containers, images, etc. I only want things like textboxes, checkboxes, combos, etc. Do they all have some property/method that I can check for?

Don't look for it. If you will even find one, tomorrow you will add some custom thing breaking the rule. Check BaseClass property for bunch of values, i.e.
IF Inlist(Control.BaseClass,'Textbox','Combobox',...)
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform