CDO$HELP.HLB  —  fld-properties  DISPLAY_SCALE
    Format

      DISPLAY_SCALE  IS  n

1  –  Parameters

1.1  –  n

    Specifies a signed integer indicating the number of places to
    shift the decimal point. A negative integer moves the decimal
    point to the left. A positive integer moves the decimal point to
    the right.

2  –  Description

    The DISPLAY_SCALE field property indicates how to shift the
    decimal point when displaying the value of a field element. Only
    DIGITAL DECforms supports the DISPLAY_SCALE field property.

    You can specify only one DISPLAY_SCALE property for a field
    element.

3  –  Examples

    1.CDO>  DEFINE FIELD AMOUNT
      cont>   DATATYPE IS LONGWORD
      cont>   EDIT_STRING IS 9999.99
      cont>   INPUT_EDIT_STRING IS 9999.99
      cont>   DISPLAY_SCALE -2.

      In this example, the DEFINE FIELD command creates the AMOUNT
      field element with a decimal point shifted two places to the
      left.

    2.CDO>  CHANGE FIELD AMOUNT
      cont>   NODISPLAY_SCALE.

      In this example, the NODISPLAY_SCALE keyword removes the
      DISPLAY_SCALE property from the AMOUNT field element.
Close Help