Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do all Valid
Message
De
15/03/1997 02:09:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00023276
Message ID:
00024377
Vues:
33
>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform