Consultor Eletrônico



Kbase P25843: How to change the decimal and thousands numeric separators at runtime
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/04/2010
Status: Verified

GOAL:

How to change the decimal and thousand numeric separators on runtime

GOAL:

How to use the SESSION:NUMERIC-FORMAT attribute

GOAL:

How to use the SESSION:NUMERIC-DECIMAL-POINT attribute

GOAL:

How to use the SESSION:NUMERIC-SEPARATOR attribute

FACT(s) (Environment):

Progress 8.x
Progress 9.x
All Supported Operating Systems

FIX:

SESSION:NUMERIC-FORMAT could be used as the following ways:

/*Sets the American numeric format with the comma as
thousands separator and the dot as decimal separator*/
SESSION:NUMERIC-FORMAT = "American".

/*Sets the European numeric format with the dot as
thousands separator and the comma as decimal separator*/
SESSION:NUMERIC-FORMAT = "European".

SESSION:NUMERIC-SEPARATOR shows the thousands separator

SESSION:NUMERIC-DECIMAL-POINT shows the decimal separator

NUMERIC-SEPARATOR AND NUMERIC-DECIMAL-POINT are just read only attributes