Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does CMonth() function is sensitive to something??
Message
 
To
08/09/2002 18:37:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00697978
Message ID:
00698090
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform