Specifications
Section 9. Program Control Instructions
9-3
CallTable
Used to call a data table.
Syntax
CallTable Name
Remarks
CallTable is used in the main program to call a DataTable. DataTables are
listed in the declaration section of the program prior to BeginProg. When the
DataTable is called, it will process data as programmed and check the output
condition.
CallTable Example
This example uses CallTable to call the ACCEL table.
CallTable ACCEL
Data … Read … Restore
Used to mark the beginning of a data list.
Syntax
Data list of constants
Read [VarExpr]
Restore
Remarks
Data function: A list of floating point constants that can be read (using Read)
into an Array Variable.
Parameter: A list of floating point constants.
Reads Data from Data declaration into an array. Subsequent Read picks up
where current Read leaves off.
Parameter: Variable destination.
Restore pointer to Data to beginning. Used in conjunction with Data and
Read.
Data Statement Example
This example uses Data to hold the data values and Read to transfer the values
to variables.
Data 1, 2, 3, 4, 5 'data for x
Data 6, 7, 8, 9, 10 'data for y
For I = 1 To 5
Read x( I )
Next I
For I = 1 To 5
Read y( I )
Next I