Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If condition with date
Message
 
 
To
16/04/2003 13:42:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00778466
Message ID:
00778475
Views:
13
>Could you please tell me how i can use the date format for the if condition.
>
>Could you please correct it.
>
>msg = date()
>
>if msg = {04/16/2003} then
> =messagebox("License expired")
> return .t.
>endif
>
>Thank you very much.

How about

IF Msg = date(2003, 4, 16)

This is not dependent on SET("DATE") or STRICTDATE settings.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform