EasyManua.ls Logo

NUM 1020 - Defining a Table

Default Icon
146 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Creating and Managing Symbolic Variable Tables
en-938872/2 4 - 3
4
The programming tools described in this chapter are used to create subroutines
called by G functions (see Chapter 5).
4.1 Creating Symbolic Variable Tables
The rules for writing symbolic variables used when creating tables are the same as
those defined for parametric programming (see Chapter 7 of the Programming
Manual).
4.1.1 Defining a Table
A table is declared as a symbolic variable between the words VAR and ENDV.
A table is defined by including its dimensions between brackets after the last
character of the symbolic variable.
For tables with several dimensions, the dimensions are separated by commas «,» or
semicolons «;».
Syntax
VAR
[TABLn(a,b,c ...)]
ENDV
VAR Declaration of symbolic variables.
[TABLn(a,b,c...)] TABLn: table name in the stack.
(a,b,c ...) : table dimensions.
ENDV End of symbolic variable declaration.
Example of table definitions
VAR
[TABL1(10)] [TABL2(2,5,3)]
ENDV
For table 2 [TABL2] above, the number of entries reserved equals:
2 x 5 x 3 = 30 entries, i.e. 5 groups of 2 then 3 groups of 10.
4.1.2 Table Dimensions
Tables can have from one to four dimensions.
For tables with one dimension:
- the value of a dimension must be between 1 and 65535.

Table of Contents

Related product manuals