Initialize Method
Syntax
CWIMAQRanges.Initialize MinValueArray, MaxValueArray
Purpose
Builds a ranges collection from an array of minimum values and an array of maximum values.
Remarks
If MinValueArray and MaxValueArray are not the same size, the number of ranges added is equal to the minimum size of the two arrays.
Parameters
MinValueArray As Variant
An array containing the lower bound of each range to set.
MaxValueArray As Variant
An array containing the upper bound of each range to set.
Example
Private Sub Run_Click() Dim AngleRanges As New CWIMAQRanges 'Initialize the angle ranges collection with data AngleRanges.Initialize Array(0, 180), Array(45, 315) End Sub