XArrayDB Reference > XArrayDB Object Methods > Set Method (XArrayDB) |
Set Method (XArrayDB)
The Set method provides an alternate way of assigning a value to an XArrayDB element.
XArrayDB.Set row, column, value
Arguments
row and column are long integer indexes identifying a particular array element.
value is a variant to be assigned to the specified array element.
Return Value
None
Method applies to XArrayDB object.
You can use this method in scripting engines that do not properly resolve the default Value property of XArrayDB.
The value argument is the variant value to be assigned to the XArrayDB element specified by the row and column indexes.
Example
The following three statements are equivalent:
MyArray.Set x, y, "Hello"
MyArray.Value(x, y) = "Hello"
MyArray(x, y) = "Hello"
See Also