Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cmonth
Message
 
 
À
04/10/2009 12:05:46
Christoph Krapp
Tiefkühldienst Gmbh
Lohne, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Cmonth
Divers
Thread ID:
01427507
Message ID:
01427617
Vues:
56
Even shorter
RETURN GETWORDNUM("Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember", MONTH(tdDate), [,])
>a shorter version
>
>
>FUNCTION cmonthg
>* Gibt den Monatsnamen auf Deutsch zurück
>* Aufruf durch cMonthG(DATE())
>LPARAMETERS tdDate
>LOCAL laMoName[12]
>IF EMPTY(tdDate)
>	tdDate=DATE()
>ENDIF
>ALINES(laMoName, "Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember", .T., ",")
>RETURN laMoName[MONTH(tdDate)]
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform