Index  Array

The Index function converts an index in multidimension.

Before using this function, you must call Array.SetDimSizes to set dimension sizes.

-1 indicates the parameter is not used.

Syntax

Integer Array.Index(
     Integer i,
     Integer j = -1,
     Integer k = -1,
     Integer l = -1)

Parameters

iIndex of the first dimension.Required
jIndex of the second dimension.Optional
kIndex of the third dimension.Optional
lIndex of the fourth dimension.Optional

Return value

The Index function returns the index value.

Example

myArray.SetDimSizes(10) // for an array of 2 dimensions
index = myArray.Index(2, 1) // 2*10 + 1 = 21
SECCIA Documentation - Copyright © 2001-2011 Sylvain Seccia