![]() UJML Language Reference |
This function returns the element count for a specified dimension of an array variable.
int _getArrayLength(arrayref arrayVariable, int dimension);
|
Parameters |
Description |
|
arrayVariable |
The name of an array variable. See Arrays. |
|
dimension |
The dimension of the array variable for which you want to get the size. |
The _getArrayLength() function returns an int value representing the count of elements in a single dimension of an array variable.
This function returns the count of elements for a specified dimension of an array variable. See Arrays. You must pass an integer value indicating which dimension of the array for which you want the size.
Note: The _getArrayLength() function works for all array variables, including array state variables.
The following example gets the size of a one-dimensioned variable. It is part of the timer.ujml sample.
cnt = _getArrayLength(mListeners, 0);
|
Copyright (c) 2000-2007 UIEvolution, Inc. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|