AMX NETLINX PROGRAMMING LANGUAGE Manual page 70

Programming language
Table of Contents

Advertisement

Language Elements
Num1D[1]
Num2D[1]
Num2D[1][1]
Num3D[1]
Num3D[1][1]
Num3D[1][1][1]
The following operations are legal:
Num2D[2] = Num1D
Num2D[5][5] = Num1D[5]
Num3D[2] = Num2D
Num3D[2][1] = Num1D
Num3D[2][1][1] = Num1D[1]
LENGTH_ARRAY
of multidimensional arrays as shown in the following examples:
INTEGER Len
INTEGER My3DArray[5][3][4]
Len = MAX_LENGTH_ARRAY(My3Darray)
Len = MAX_LENGTH_ARRAY(My3Darray[1])
Len = MAX_LENGTH_ARRAY(My3Darray[1][1])
INTEGER Len
INTEGER My3DArray[5][3][4] =
{
Len = LENGTH_ARRAY(My3Darray)
Len = LENGTH_ARRAY(My3Darray[2])
Len = LENGTH_ARRAY(My3Darray[1][3]) (* Len = 3, number of columns in table
54
refers to the 1st element
refers to the 1st row
refers to the 1st element of the 1st row
refers to the 1st table
refers to the 1st row of the 1st table
refers to the 1st element of the 1st row of the 1st table
and
MAX_LENGTH_ARRAY
{
{1,2,3,4},
{5,6,7,8},
{9,10,11}
},
{
{13,14}
}
}
are used to determine the effective and maximum lengths
// Len = 5
// Len = 3
// Len = 4
(* Len = 2, number of tables *)
(* Len = 1, number of rows in table 2 *)
1, row 3 *)
NetLinx Programming Language Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents