DIAdem Help

Method: Array for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: Array for VBS

Creates an array.

vArray = Object.Array(arglist)
ObjectVBS
Object with this method. You do not need to specify this object.
arglistVariant
Specifies a series of values that are separated by commas. DIAdem assigns these values to the array elements.
vArrayVariant
Specifies the array. The array is zero-based. The smallest index of the array is therefore 0.

The following example generates an array with four values and displays the third element:

Dim MyArray
MyArray = Array(10,20,30,40)
Call MsgBox(MyArray(2)) ' Returns 30

Related Topics

Array | Dim | Private | Public | ReDim | IsArray | Erase | LBound | UBound

Log in to get a better experience