Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to catch the validation rules?
Message
From
10/09/1997 10:12:33
 
 
To
10/09/1997 10:00:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00049301
Message ID:
00049302
Views:
55
>How could I obtain the field or record-validation rule and the corresponding validation text from a
>table in visual Foxpro?
>
>This is what I mean: When I set, say, a record-validation rule for a table, and my program tries to
>create a new record (for example by using append blank or insert from...), the validation rule is
>executed and an error may occur.
>
>How could I Check from the program, the validation rule (and of course the corresponding validation
>text) of a given table?
>
>Thanks for help.

Use dbgetprop(), something like:
? dbgetprop("table1.field1","field","RuleExpression")
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform