wwLocaleInfo::SetLocaleInfo

Sets the FoxPro Locale settings based on a Locale.

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, 1996-2022 • Updated: 02/15/06
Comment or report problem with topic