Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any function for check if its a leap year ?
Message
 
À
21/02/2003 16:07:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00756383
Message ID:
00756468
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform