Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing VFP's Invalid Date message
Message
From
26/06/2006 14:59:24
 
 
To
26/06/2006 14:09:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01131737
Message ID:
01131801
Views:
28
Put this in the valid:
TRY
  LOCAL ldDate
  ldDate = DATE(YEAR(This.Value), MONTH(This.Value), DAY(This.Value))
CATCH
  MESSAGEBOX("Invalid Date")
ENDTRY
>Thanks Craig,
>
>that stops the message displaying, but how do I trap for an invalid date and display my own message?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform