Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field and Record validation with DBC Rules
Message
From
23/11/2001 12:16:13
 
 
To
23/11/2001 07:28:12
Sam Trenchard
System Support Services
London, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00584837
Message ID:
00585164
Views:
20
Hi Sam.

>I seems there is just no way to intercede between a control and a field rule bound directly to a Table

Sure there is. Here are at least two different ways to handle this:

1. Use an error handler. When a field rule fails, error 1582 occurs. Trap for that and do whatever you wish, such as displaying a message.

2. Bind the control to a field in a view based the table rather than the table field. Then the field rule will only fail when you use TABLEUPDATE() to write the view data back to the table. It won't fail with an error, but by returning .F., and you can use AERROR() to see what went wrong and handle it accordingly.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform