Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do all Valid
Message
From
15/03/1997 02:09:46
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00023276
Message ID:
00024377
Views:
29
>A more "generic" way to check to make sure all the input is valid would be to create a FOR...ENDFOR loop using the ControlCount property of the form. Once you know the number of controls on a form you can reference each one by index then check to see if it has a valid event and if it does, fire the valid.
>
>Or, you could create a "valid collection class" that automatically stored refrences to any control with a valid event and then create a "DoAllValid" method for that class. This way is obviously more involved, though. But, hey, I like programming for programming's sake ;-).
>
>
>Michael G. Emmons
>Visual Foxpro Programmer Extroidinaire

:P
Can you show me simple examples of the above two method?
-Thanks
oh, what is the fastest way to write good program?
Previous
Reply
Map
View

Click here to load this message in the networking platform