Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic - Procedure Question
Message
De
21/01/2001 16:22:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00466388
Message ID:
00466395
Vues:
11
>What do people do for standard validation of data. ? how do you make screens react ?
>The valid propertity while it works. is not what I am looking for, (what if the user never gets to that field, and the data, cant be left out.
>
>Onto the question
>if I have a save button, which is suppose to check the data before writing it to the database ?
>like this
>if thisform._textfield1=0
>* something wrong"
>** how to I put control back to the form, with
>
>endif
>then write the data
>
>I tried doing a setfocus() but the save button just goes back and saves it anyway.
>
>I was thinking of putting the isvalid() in seperate class. Anythought ?
>
>Thank you
>Bob lee


This is exactly the type of thing that you can put in the business rules. The Valid() method of the biz class should check for missing data and validate populated fields.

You can also check for this in the rules and triggers for the fields/tables in the DBC.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform