GFORM
SWDBC
The GFORM definitions defines a decimal numeric variable or an array of such. If an array is defined, each array item may be initialized. It uses one of the following formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Definition Label.
*
Optional. Denotes the item or file as being COMMON.
size
Required. A decimal constant or EQUATEd value indicating the variable size The size is specified as the number of integer digits, followed by an optional decimal point and optional number of fractional digits.
value
Required. A numeric Literal (i.e., "3.45").
dvalue
Required. A decimal immediate value or a numeric literal.
arraysize
Optional. An integer decimal constant, CONST variable or EQUATEd value indicating the number of array items.
Flags Affected: NONE
Note the following:
GFORM variables follow the same rules as FORM variables when declaring Global Data Items..
The GFORM syntax format (9) is only supported when the SWDBC mode is enabled using the compiler (-zc=3) option.
See Also: Example Code, FORM, INTEGER, Numeric Strings, Data Definitions
![]() |