Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field-Level validations and date fields
Message
 
To
13/11/1998 16:29:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00157556
Message ID:
00157624
Views:
18
>I would like to know how anyone is trapping dates for Y2K in VFP 5.
>If I enter a bad date in a date field and try to leave the field, I not only stay in the field, but I can't get an error message to fire at all. If I put field-level rules on the date fields I can't get it to fire: ddatefld <> {}.
>From my insight it seems that the database engine is validating dates before it gets a chance to hit the field-level rule.
>
>I just want a message to appear when the user puts in an invalid date.

Paige,

You are right when you think VFP is checking the data type before any other code runs. You can SET NOTIFY ON and the suer will get an "Invlaid Date" message in the status bar or a wait window if the status bar is shut off.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform