Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
After January 1st
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00308678
Message ID:
00312345
Vues:
51
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform