3 LOCAL <var>[,<var2>][,<var3>][,...] [TYPE <c-type>] [ARRAY <size>]
7 This statement only has sense within functions, subroutines or records.
8 It defines a local variable <var> with C type <type> which will not be
9 visible for other functions, subroutines or records, nor for the main
12 If the TYPE keyword is omitted then variables are assumed to be of
13 'long' type. If TYPE is omitted and the variablename ends with a '$'
14 then the variable will be a string.
16 The ARRAY keyword is used to define a dynamic array, which can be
17 resized with REDIM at a later stage in the program.
23 LOCAL new_array TYPE float ARRAY 100
26 Multiple variables of the same type can be declared at once, using a
27 comma separated list. In case of pointer variables the asterisk should
28 be attached to the variable name:
30 LOCAL x, y, z TYPE int
31 LOCAL *s, *t TYPE long