DEFAULT-STRING attribute

The unformatted version of the INITIAL attribute.

Data type: CHARACTER

Access: Readable/Writeable

Applies to: Buffer-field object handle

For example, consider the following temp-table definition:

DEFINE TEMP-TABLE ttFoo
  FIELD dFoo AS DATE    INITIAL TODAY
  FIELD iFoo AS INTEGER INITIAL 5000.

The DEFINE TEMP-TABLE statement defines the DATE field ttFoo.dFoo with an INITIAL value of TODAY. For this field, the INITIAL attribute is [today's date], formatted subject to SESSION:DATE-FORMAT. However, the DEFAULT-STRING attribute contains TODAY, the unformatted character value.

The INTEGER field ttFoo.iFoo is defined with an INITIAL value of 5000. The INITIAL attribute is the formatted 5,000. The DEFAULT-STRING attribute contains the unformatted 5000.

DEFAULT-STRING renders its dates and numeric values in LOCAL format, subject to the DATE-FORMAT and NUMERIC-FORMAT attributes of the SESSION system handle.

See also

DATE-FORMAT attribute, DEFAULT-VALUE attribute, INITIAL attribute, NUMERIC-FORMAT attribute