Futurebasic/Language/Reference/Define

Statement
✔ Appearance ✔ Standard ✔ Console

Syntax

 * 1) define newTypeName as oldTypeName
 * 2) define newTypeName as {pointer to|@|^|.} oldTypeName
 * 3) define newTypeName as {handle to|@@|^^|..} oldTypeName

Description
The  statement is one way to create a name for a variable type (the other way to do so is to use the   statement). can be any new name you like that is different from the names of all existing types. is the name of an existing type; this can either be a built-in type such as  or , or a type which you created previously, in a   statement or in another   statement. After the  statement, you can declare variables of the new type using   statements, and you can pass   to the   and   functions. If you use the first syntax,  essentially becomes a synonym for. If you use the other two syntaxes, then variables of the new type are recognized as pointers or handles to structures of. This is the only way to create a type name for pointers or handles to other types.