Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last Day of month
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00349709
Message ID:
00350618
Vues:
29
Hmmm, the other two well known one line formulas (using GOMONTH) look better to me.

Vlad

>Drat! You're right, of course. Hmm...keeping it as a one liner
lday = DAY(DATE(IIF(lnmonth < 12, lnyear, lnyear + 1), IIF(lnmonth < 12, lnmonth + 1, 1), 1) - 1)
but I'd much rather...
IF lnmonth = 12
>  lnmonth = 0
>  lnyear = lnyear + 1
>ENDIF
>lnday = DAY(DATE(lnyear, lnmonth + 1, 1) - 1)
for readability purposes.:-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform