Set_Locale¶
Include: Use System\Locale.pkg
See Also: Locale constants, Get_Locale, Push_Locale, Pop_Locale
Purpose¶
Sets the active program locale.
Syntax¶
Set_Locale to sLocale
Set_Locale sLocale
Arguments¶
sLocale
: A string value or locale constant such as DF_LOCALE_NATIVE, DF_LOCALE_POSIX, DF_LOCALE_USA, DF_LOCALE_EUROPE, DF_LOCALE_MILITARY, DF_LOCALE_ISO8601, or DF_LOCALE_ECMASCRIPT.
Returns¶
None.
Behavior¶
Set_Locale sets the active DF_LOCALE attribute. Accepted built-in names are listed in Locale constants. A non-string argument is a compile-time command error. An empty or unsupported locale value raises a DataFlex error through Set_Attribute DF_LOCALE.
Example¶
Use System\Locale.pkg
Procedure WriteIsoStamp DateTime dtStamp
String sStamp
Push_Locale
Set_Locale to DF_LOCALE_ISO8601
Move dtStamp to sStamp
Pop_Locale
End_Procedure