Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need assistance with 'field validation'
Message
From
03/03/2003 09:52:07
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
02/03/2003 10:48:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00759567
Message ID:
00760352
Views:
25
Hilmar,

I am definitely interested in seeing how you do your validation code and would greatly appreciate any that you care to share. The stuff about corresponding error messages is what I'm now curious about too.

Mike.

>>Dana,
>>
>>Of course. You're correct in that DO CASE... is not what I'd need and several IF statements would be required. Anyway, if there were multiple fields that needed validating, is it recommended or common to create "large" IF statements within the validation rule?
>
>A table-based approach for validation is much easier to maintain. All rules, and the corresponding texts, are in a table. Then, all you need to do is add a rule and its corresponding error message into the table.
>
>If you are intested, I will post my validation code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform