Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic - Procedure Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00466388
Message ID:
00466395
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform