Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETFOCUS doesn't
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00947693
Message ID:
00947697
Views:
19
try puttng the following code in the valid event of the control

DO CASE

CASE (CTOD(THIS.VALUE) > DATE())
MESSAGEBOX("Error in Date: Greater than current date.",16)
return 0


CASE(CTOD(THIS.VALUE) < DATE()-60)
MESSAGEBOX("Error in Date: More than 60 days before today.")
return 0

ENDCASE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform