Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a Required Field?
Message
De
28/11/1997 16:37:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00062767
Message ID:
00062788
Vues:
58
>I was thinking of the best generic way to make some fields in a table required. I'd like to check for the values in objects before the actual save takes place. What I thought I would try is to create a new logical property called "required" on all appropriate data objects (textboxes, editboxes, drop-downs, etc.). Then, in my pre-save hook I could just go through the container and make sure all objects with required=.T. are not empty.
>
>Anyone have any ideas/comments about this approach?

if you are using DBCX (or anyother extention to the data dictionary) you can make this a property of the field
then it is tied to the data and not to the form...

Arnon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform