Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After January 1st
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00308678
Message ID:
00312345
Views:
54
Hi Jim,

My preference would be:
lLeapYear = .F.
IF nYear % 4 = 0
  IF nYear % 100 = 0
    lLeapYear = (nYear % 400 = 0)
  ELSE
    lLeapYear = .T.
  ENDIF
ENDIF
Not only do I think it's as readable, but it's less code and faster.
George

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

Click here to load this message in the networking platform