Bound Function

Description:

This function returns the length of an array dimension.

Format:

ArrayDim = BOUND(array_var, array_dim_index)

Parameter:

array_var

The name of an array variable for which the length must be returned.

array_dim_index

An integer value or integer variable specifying the array dimension.

Example:

STRING ArrayVar[][];
INTEGER ArrayDim1;
INTEGER ArrayDim2;

ArrayVar[12][23] = "Something";
ArrayDim1 = Bound(ArrayVar, 1);
ArrayDim2 = Bound(ArrayVar, 2);

log "ArrayDim1 = " + ToString(ArrayDim1) + ", ArrayDim2 = " + ToString(ArrayDim2);

Output:

ArrayDim1 = 12, ArrayDim2 = 23





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap