Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does CMonth() function is sensitive to something??
Message
De
08/09/2002 19:01:47
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:
00698093
Vues:
17
Yes, this is neat. Unfortunately, I don't have VFP7 yet. Of course, this can also be done with FoxTools.

Hilmar.

>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
>>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform