int ArrayRange(object array[ ], int range_index)
Returns the count of elements in the given dimension of the array. Since
indexes are zero-based, the size of dimension is 1 greater than the largest
index.
配列の特定次元の要素数を数えて返します。インデックスはゼロから始まるので、次元は、最大インデックスより 1 大きいサイズになる。
Parameters:
パラメータ:
array[] - Array to check.
チェックする配列。
range_index - Dimension index.
次元インデックス。
Sample:
サンプル:
int dim_size;
double num_array[10,10,10];
dim_size=ArrayRange(num_array, 1);
|