Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does CMonth() function is sensitive to something??
Message
 
 
To
08/09/2002 19:01:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00697978
Message ID:
00698099
Views:
25
Hilmar,

It can still be done with one line in earlier versions.
return alltrim( substr( "           January  February March    April    May      June     July     August   SeptemberOctober  November December ", tnMonth*9, 9 ) )
>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, ",")
>>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform