The VP SET VALUES command assigns a collection of values starting at the specified cell range.
In rangeObj, pass a range of the cell (created with VP Cell) whose value you want to specify. The cell defined in the rangeObj is used to determine the starting point.
Notes:
- If rangeObj is not a cell range, only the first cell of the range is used.
- If rangeObj includes multiple ranges, only the first cell of the first range is used.
The valuesCol parameter is two-dimensional:
- The first-level collection contains subcollections of values. Each subcollection defines a row. Pass an empty collection to skip a row.
- Each subcollection defines cell values for the row. Values can be Longint, Real, Boolean, Text, Date, Null, or Object. If the value is an object, it can have the following properties:
Property | Type | Description |
value | Longint, Real, Boolean, Text, Date, Null | Value in the cell (except- time) |
time | Real | Time value (in seconds) |
The following code:
... produces the following result:
