Struct Statement

Defines a simple compound data type.

Syntax

Struct structName [ IS supertype ]
    elementName As elementType
    ...
    [ statements ]
End Struct

Parts

structName
Required identifier
supertype
Optional elementary data type
elementName
Required identifier
elementType
Required value type; either an elementary data type or the name of a different Struct.
statements
Optional procedures
End Struct
Terminates the Struct block.

Details

Struct is short for "structure".

Examples

Listing 1
Struct point
    x As Double
    y As Double
End Struct

See also