Method: Array for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Array for VBS
Method: Array for VBS
Creates an array.
vArray = Object.Array(arglist)
| Object | VBS Object with this method. You do not need to specify this object. |
| arglist | Variant Specifies a series of values that are separated by commas. DIAdem assigns these values to the array elements. |
| vArray | Variant 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
See Also
Related Topics
Array | Dim | Private | Public | ReDim | IsArray | Erase | LBound | UBound