Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to keep procedure
Message
De
27/07/2000 09:28:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Where to keep procedure
Divers
Thread ID:
00397542
Message ID:
00397542
Vues:
28
I have a procedure that is used in most forms that I have in my TblClass.vcx. I drag and drop TblClass onto the form then use the procedures in there. I just had the thought that it would be easier to just add a Method to my form base class for IsEmpty(). That way it is always there when I need it. Is there any reason not to have several procedures added to your form class to handle routine things?

Basicly IsEmpty() just checks the control.value to see if it is empty(). if it is empty it puts up a messagebox and returns the focus to that control. I use it in my cmdSave control...

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform