Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cmonth
Message
From
07/01/2003 06:11:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
07/01/2003 05:24:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Cmonth
Miscellaneous
Thread ID:
00738680
Message ID:
00738693
Views:
15
>Who can help me?
>I get only oct,nove... (not october,november...).
>Thank you

Perhaps this has to do with regional settings in the Control Panel? See SET SYSFORMATS.

Anyway, since the return value of cmonth() is dependent on the language of VFP, I suggest to keep away from it. Create your own function, and you have everything under your control.
FUNCTION MyCMonth(tnMonth)
if type(tnMonth) = "D"
  tnMonth = month(tnMonth)
endif
do case
case tnMonth = 1
  return "January"
case tnMonth = 2
  return "February"
...
otherwise
  return "???"
endcase
HTH, Hilmar.
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform