Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field Validation Rules in the DBC
Message
 
To
16/01/1999 12:27:51
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00176880
Message ID:
00176886
Views:
25
>Revert should be put the field back the way it was, but in my limited testing it blanks the field and then the cursor wont go back into it. The whole routine then crashes with an 'EOF' error message so it appears to me that the undo is operating on my 'append blank' command rather than just on the field. I am using optimistic buffering and the rule fires when I tab out of the field. I was under the impression that these rules did not fire until the record was committed and I was happy with that. On discovering that the rules would file as an equivalent to a field valid I saw the opportunity to remove a lot of validation routine code, but the presence of the Revert botton is completely unwelcome.


One other suggestion may be to put all validation at the record level rather than the field level. Then testing will be done all at once on commit attempt of the record, not each field. Again, you can check the WizStyle txtBtns class for how they handle error trapping...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform