Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Leap years
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00115008
Message ID:
00115102
Vues:
14
Josh,

You can use the new ^ date constant specifier to avoid set date issues.

>This will work, but it depends on your SET DATE settings.
>
>>
>>Hi Jim,
>>Fox knows which years are leap years...
>>FUNCTION LeapYear
>>LPARAMETER nYear
>>RETURN CTOD("29/2/" + LTRIM(STR(m.nYear))) <> {}
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform