PLB_LOCALE Keyword


PLBWIN or PLBCE

PLB_LOCALE={ ON | OFF }

 

This keyword causes the runtime to retrieve the current Windows settings for the following:

  1. Number format

  2. Currency format

 

If PLB_LOCALE is set to ON, the operation for EDITTEXT object changes for the numeric form such that 0-9 digits plus the Locale Numeric Decimal point is allowed for data entry.

 

If PLB_LOCALE is set to ON, the operation of SETITEM and GETITEM for numeric EDITTEXT object changes as follows:

 

  1. For a SETITEM statement, any decimal point characters are changed to the Locale Number Decimal symbol before the data string is sent to the numeric EDITTEXT object.

  2. For a GETITEM statement, any Locale Number Decimal symbol found in the data returned from a numeric EDITTEXT object is changed to decimal point characters.

 

If PLB_LOCALE is set to OFF, the runtime checks for the existence of the following keywords that may allow a user define the following:

 

Keyword

Defines the ...

PLB_DECIMAL={value}

number decimal symbol.

PLB_THOUSAND={value}

number 1000 grouping separator.

PLB_MONDECIMAL={value}

monetary decimal symbol.

PLB_MONTHOUSAND={value}

monetary 1000 grouping separator.

PLB_CURRENCY={value}

currency symbol.

 

If PLB_LOCALE is set to OFF and none of the number/currency keywords are found, the runtime defaults to the following:

 

Symbol

Default Value

Numeric decimal

Period

Numeric 1000 grouping

Comma

Monetary decimal

Period

Monetary 1000 grouping

Comma

Currency

Dollar Sign ($)

 

If PLB_LOCALE is set to OFF, NO character translation takes place for GETITEM and SETITEM statements.

 

 

See Also: PLBWIN Keywords, PLBCE Keywords, Compiler and Runtime Options

 



Compiler and Runtime Options PLB_LOADLIBSSL_FIRST Keyword PLB_LOCALIP Keyword