DecimalSeparator

Description

Specifies the decimal separator setting used by the back-end DBMS that you are accessing in DataWindow Designer. If your DBMS uses a decimal separator other than period (.), which is the default, set DecimalSeparator to the value for your DBMS to ensure that DataWindow Designer correctly handles numeric strings returned from your database.

Applies to

Syntax

DecimalSeparator = 'value'

Parameter

Description

value

The decimal separator setting used by the back-end DBMS that you are accessing in DataWindow Designer. Values are:

  • '.' (Default) Specifies that your back-end DBMS uses a period (.) as the decimal separator. If you do not specify DecimalSeparator or if you specify a value other than period (.) or comma (,), DataWindow Designer uses period (.) as the decimal separator.

  • ',' Specifies that your back-end DBMS uses a comma (,) as the decimal separator.

Default

DecimalSeparator = '.'

Usage

When to set DecimalSeparator The DecimalSeparator parameter currently supports period (.) and comma (,) as valid values. Therefore, if the decimal separator setting for your DBMS is a comma, you should set the DecimalSeparator parameter to ',' (comma) to make sure DataWindow Designer correctly handles numeric strings returned from your database.

Example using Oracle Assume you are accessing an Oracle database in DataWindow Designer and the decimal separator setting is a comma (,). Oracle returns to DataWindow Designer the numeric string '123,50' containing a comma instead of a period as the decimal separator. DataWindow Designer then sends this string to its decimal conversion routines.

By default, the DataWindow Designer decimal conversion routines expect a period as the decimal separator. If you set the DecimalSeparator parameter to ',' (comma), DataWindow Designer correctly handles this string and returns it as '123,50'.

Examples

Example 1

To specify that your DBMS uses a comma (,) as the decimal separator setting:

See also

NumericFormat