Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does CMonth() function is sensitive to something??
Message
 
À
08/09/2002 18:37:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00697978
Message ID:
00698090
Vues:
20
Hilmar,

or the one line VFP7 version :)
FUNCTION MyMonthName(tnMonth)

RETURN GETWORDNUM("January,February,March,April,May,June,July,August,September,October,November,December", tnMonth, ",")
Regards,
Armin

>
>FUNCTION MyMonthName(tnMonth)
>if type("tnMonth") = date()
>  tnMonth = month(tnMonth)
>endif
>do case
>case tnMonth = 1
>  return "January"
>case tnMonth = 2
>  return "February"
>...
>case tnMonth = 12
>  return "December"
>otherwise
>  return "Error calculating month"
>endcase
>

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform