MarciaWalker
New Member
Hi all
I'm trying to get the system locale (not session) date format, and I want to use this windows API, which I believe should be instantiated as follows:
PROCEDURE GetDateFormatEx EXTERNAL "KERNEL32" :
DEFINE INPUT PARAMETER Locale AS LONG.
DEFINE INPUT PARAMETER dwFlags AS LONG.
DEFINE INPUT PARAMETER lpTime AS LONG.
DEFINE INPUT PARAMETER lpFormat AS LONG.
DEFINE INPUT-OUTPUT PARAMETER lpDateStr AS CHARACTER.
DEFINE INPUT PARAMETER cchDate AS LONG.
DEFINE INPUT PARAMETER lpCalendar AS LONG.
END PROCEDURE.
To run it I believe I should call it as follows:
RUN GetDateFormatEx( RD-LANGID ,
1,
0,
0,
INPUT-OUTPUT chDate,
LENGTH(chDate),
0
).
My question is how to fill the variable RD-LANGID with windows predefined values for LOCALE_NAME_USER_DEFAULT. How do I access these windows constants?
I'm using 10.2b with appbuilder.
I'm trying to get the system locale (not session) date format, and I want to use this windows API, which I believe should be instantiated as follows:
PROCEDURE GetDateFormatEx EXTERNAL "KERNEL32" :
DEFINE INPUT PARAMETER Locale AS LONG.
DEFINE INPUT PARAMETER dwFlags AS LONG.
DEFINE INPUT PARAMETER lpTime AS LONG.
DEFINE INPUT PARAMETER lpFormat AS LONG.
DEFINE INPUT-OUTPUT PARAMETER lpDateStr AS CHARACTER.
DEFINE INPUT PARAMETER cchDate AS LONG.
DEFINE INPUT PARAMETER lpCalendar AS LONG.
END PROCEDURE.
To run it I believe I should call it as follows:
RUN GetDateFormatEx( RD-LANGID ,
1,
0,
0,
INPUT-OUTPUT chDate,
LENGTH(chDate),
0
).
My question is how to fill the variable RD-LANGID with windows predefined values for LOCALE_NAME_USER_DEFAULT. How do I access these windows constants?
I'm using 10.2b with appbuilder.