Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any function for check if its a leap year ?
Message
 
To
21/02/2003 16:07:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00756383
Message ID:
00756468
Views:
11
>How's this expression?
>
>IIF((m.nYear%100)==0, (m.nYear%400)==0, (m.nYear%4)==0)

Yep, it works but
IsLeapYr = (nYear % 4 = 0) AND (NOT (nYear % 100 = 0) OR (nYear % 400) = 0)
also works.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform