10.5.8.2. DIM
10.5.8.2. DIM
Explanation | Defines the local variables of sub jobs. It is preferred to put it at the front of a job. It needs to be executed later than PARAM statement | ||
Syntax | DIM [<Local variable >,<Local variable >,......] AS <Variable type> | ||
Parameter | Local variable | Names of the local variables to be used for sub jobs. Should start with the prefix “I” (Refer to 10.4.4.3 Local variables) | Up to 10 |
Variable type | One of Integer, Double, String, Pose and Shift |
| |
Example | 'Calc. Euclide distance 2D PARAM ldLen,ldX,ldY DIM ldaMid[3],ldTmp AS Double DIM ltMsg AS String ' ldTmp=ldX*ldX+ldY*ldY ldLen=SQR(ldTmp) ‘distance from origin |