Show/Hide Toolbars

Take Command / TCC Help v. 21

@ARRAYINFO[arrayname,option] : Returns information about the specified array.

 

arrayname - name of the array (defined by SETARRAY) to query

 

option - the type of information:

 

0 - total number of dimensions

1 - number of elements in the first dimension

2 - number of elements in the second dimension

3 - number of elements in the third dimension

4 - number of elements in the fourth dimension

5 - total number of elements

 

@ARRAYINFO will return -1 if the array doesn't exist.

 

Examples:

 

setarray array[5,10]

echo %@arrayinfo[array,0]

2

 

echo %@arrayinfo[array,2]

10