Difference between revisions of "MC-Basic:ARRAYSIZE"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= <''variable''> = arraysize (''<array_name>, <long_expression>)'' |AVAILABILITY= AllVersions |DESCRIPTION= Returns the size of a array’s dim…')
 
m (1 revision)
(No difference)

Revision as of 16:10, 13 December 2010

Returns the size of a array’s dimension according to the dimension’s number (1 for first the dimension, 2 for the second dimension, etc.).

Returns zero if the dimension number is larger then the number of dimensions defined for the array, and also if the dimension number is zero or negative.

Syntax

<variable> = arraysize (<array_name>, <long_expression>)

Availability

AllVersions

Type

Long

Scope

Configuration, Task, Terminal

Examples

? ArraySize (Arr, 2)

Size = ArraySize (Arr, X)