COMSafeArray.Resize
Syntax:
Parameters:
<Count> (required)
The new number of elements in the first (null) dimension.
<LowerBoundary> (optional)
The new minimal index value for the first (null) dimension.
Default value: 0.
Description:
For example, if a COMSafeArray consists of the elements: [0, 0] = 1; [0, 1] = 2; [1, 0] = 3; [1, 1] = 4;
after Resize(3,-1) it will contain: [-1, 0] = 1; [-1, 1] = 2; [0, 0] = 3; [0, 1] = 4; [1, 0] = ?; [1, 1] = ?;
but after Resize(1,2) it will contain: [2, 0] = 1; [2, 1] = 2.
Availability:
Note:
Example:
// For the main index of array the number of elements is set to 10 // and minimal index value is set to -1. If Array.IsResizable() Then Array.Resize(10, -1); EndIf; |