WinStudio

DEFAULTFORMAT Keyword

Applies To

Form components.

Extended data type variable values.

Property defaults.

Component property: Data type.

Description

Specifies default format properties for the value of a component.

Syntax

DEFAULTFORMAT( keyword( ) [keyword( ) . . .] )

Part

Description

keyword( ) Keywords and parameters that determine the visual format and other properties of the value of a component. The following keywords can serve as keyword() settings:

FONT

FORECOLOR

BACKCOLOR

DECIMALPOINT

COMMA

COMMAS

DATE

DATETIME

TIME

AUTOIME

BLOBFORMAT

Remarks

WinStudio stores the DEFAULTFORMAT keyword, its parameters, and other specifications for a data type in a variable. If a default format is specified at the component level in the Form Component Properties dialog box, WinStudio creates a form-level variable whose name consists of the prefix dt_ and the name of the component with which it is associated. An extended data type variable is global, and the variable name consists of the prefix edt_ and the name of the user-defined data type on which it is based. Once you specify a data type, you can apply it, including DEFAULTFORMAT specifications, to a component by means of the variable.

Example

In the following example of a data type specification, the DEFAULTFORMAT keyword sets the typeface to bold Times New Roman in blue.

DATATYPE(CHAR) DEFAULTFORMAT(FONT(-11,0,0,0,700,0,0,0,0,3,2,1,18,Times New Roman) FORECOLOR(0,0,255))


Related Topics

AUTOIME Keyword

BACKCOLOR Keyword

BLOBFORMAT Keyword

COMMA Keyword

COMMAS Keyword

DATATYPE Keyword

DATE Keyword

DATETIME Keyword

DECIMAL Keyword

DECIMALPOINT Keyword

FONT Keyword

FORECOLOR Keyword

JUSTIFY Keyword

MASK Keyword

TIME Keyword

TRUNCATEDECIMAL Keyword