Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messages of Validations
Message
 
To
08/09/1999 20:12:43
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00261658
Message ID:
00262795
Views:
22
Adam,

You are trying to get the Valid rule for a filed to do something it is not intended to do. The valid rule for afiled is strictly to prevent bad data from getting into the field. You want to have that error out if the bad data gets past the user interface. Use the user itnerface to give the user information about what went wrong. A violation of a valid rule causes an error, you can use the error event of teh control to trap that error and respond to it. The message you are seeing is the error message.

Just let your valid rule return .f. on failure and in the error event of the control you can dislay the message any way you want.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform