Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Validation strategy
Message
From
15/05/2001 08:41:35
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgia, United States
 
 
To
15/05/2001 07:10:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00507191
Message ID:
00507215
Views:
8
>Is there any way of determining which field caused a record level validation to fail?
>
>The problem I'm having is in creating the same friendly type of user interface that my users know and expect. Assuming the data failed to validate, the form knows that the TableUpdate() has failed because it returned false, but the form also needs to know why it failed and in particular which field it failed on so it can SetFocus() to the offending field.
>

David,

You might create a cursor to contain the information you need. Your validation routine would add a record each time it encountered an error and the form error processor would then loop through the records and handle the errors.
David.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform