>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?