TYPE

Top  Previous  Next

Syntax

TYPE name, OPT pack = 8

Description

Begins definition of a user defined data type (UDT)

Parameters

name - Name of the user defined type

pack - Optional byte packing value. Defaults to 8.

Return value

None

Remarks

The members of a UDT can be any built-in or user defined type and use the DEF statement for defining. You must end the definition with the ENDTYPE statement.

See Also: ENDTYPE

Example usage

TYPE foo
  DEF name as STRING
  DEF age as INT
ENDTYPE
 
DEF record as foo
record.name = "John Smith"