wwLocaleInfo::SetLocaleInfo

Sets the FoxPro Locale settings based on a Locale.

foxpro
foxpro
SET DATE TO (loLocale.cDateFormat) IF loLocale.l24HourTime SET HOURS TO 24 ELSE SET HOURS TO 12 ENDIF SET MARK TO (loLOcale.cDateSeparator) SET POINT TO (loLocale.cDecimalPoint) IF !EMPTY(lcCurrencySymbol) SET CURRENCY TO (lcCurrencySymbol) ELSE SET CURRENCY TO (loLocale.cCurrencySymbol) ENDIF
o.SetLocaleInfo(lnLocale,lcCurrencySymbol)

Parameters

lvLocale
numeric or string locale id String locale Ids are in the format of en-us,de-at,de-de,fr-ca

lcCurrencySymbol
Optional - a fixed currency symbol to use. Pass a blank to automatically switch the currency symbol to the Locale specific currency symbol.

See also

Class wwLocaleInfo

© West Wind Technologies, 2025 • Updated: 2025-03-12
Comment or report problem with topic