Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve month and day names for a specific locale?
Message
From
21/06/2006 21:33:57
 
 
To
21/06/2006 14:51:00
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01130529
Message ID:
01130679
Views:
16
Hi Herman! :)

Fantastic! That was exactly the information I was looking for. I was on the right track with GetLocaleInfo() but misunderstood the power of this function's 2nd parameter.

Thank you!
Malcolm


>The link you provided is for members only. Anyway, the GetLocaleInfo provides all info for names of Day and Month.
>
>The constant to retrieve names of the day is:
>
>#Define LOCALE_SDAYNAME1   0x0000002A  && long name for Monday
>...
>#Define LOCALE_SDAYNAME7   0x00000030  && long name for Sunday
>
>#Define LOCALE_SABBREVDAYNAME1  0x00000031   && abbreviated name for Monday
>...
>#Define LOCALE_SABBREVDAYNAME7  0x00000037   && abbreviated name for Sunday
>
>
>And the constant to retrieve names of the month is:
>
>#Define LOCALE_SMONTHNAME1    0x00000038  && long name for January
>...
>#Define LOCALE_SMONTHNAME12   0x00000043  && long name for December
>
>#Define LOCALE_SABBREVMONTHNAME1   0x00000044   && abbreviated name for January
>...
>#Define LOCALE_SABBREVMONTHNAME12  0x0000004F   && abbreviated name for December
>
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform