Specifications
205
Example:
Example 1: Valid DEFREG statements
DEFREG a,e$
DEFREG b=100,c(10),d$(2,4)[10]
DEFREG bps$="19200"
DEFREG a%(2)={1,2}
DEFREG a%(2)={1,,3}
DEFREG a%(2)={,,3}
DEFREG b%(1,1)={{},{1,2}}
DEFREG b%(1,1)={,{1,2}}
DEFREG b%(1,1)={{1,2}}
Example 2: Position of elements in an array
DEFREG a%(1,1)={{1},{,3}}
The elements of the above array have the following initial values:
a%(0,0):1
a%(0,1):0
a%(1,0):0
a%(1,1):3
DEFREG b$(1,1)[3]={,{"123"}}
The elements of the above array have the following initial values:
b$(0,0):""
b$(0,1):""
b$(1,0):"123"
b$(1,1):""
Example 3: DEFREG statements causing syntax errors
DEFREG c%(2)={1,2,3,4}
DEFREG d%(2)={1,2,}
DEFREG e%(1,1)={{,},{1,2}}
DEFREG f%(1,1)={{1,2},}
Reference:
Statements:
DIM