Difference between revisions of "MC-Basic:ARRAYSIZE"

From SoftMC-Wiki
Jump to: navigation, search
m (1 revision)
m (adjusted layout)
Line 4: Line 4:
  
 
|SYNTAX=
 
|SYNTAX=
<''variable''> = arraysize (''<array_name>, <long_expression>)''
+
<''variable''> = arraysize (<''array_name''>, <''long_expression''>)
  
 
|AVAILABILITY=
 
|AVAILABILITY=
AllVersions
+
All versions
  
 
|DESCRIPTION=
 
|DESCRIPTION=
 
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 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.
+
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.
  
 
|TYPE=
 
|TYPE=
Line 33: Line 33:
  
 
|EXAMPLE=
 
|EXAMPLE=
? ArraySize (Arr, 2)<br>
+
<pre>
 +
? ArraySize (Arr, 2)
  
 
Size = ArraySize (Arr, X)
 
Size = ArraySize (Arr, X)
 +
</pre>
  
 
|SEE ALSO=
 
|SEE ALSO=

Revision as of 12:35, 17 May 2011

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

All versions

Type

Long

Scope

Configuration, Task, Terminal

Examples

? ArraySize (Arr, 2)

Size = ArraySize (Arr, X)