GetCoords Method

NI Vision for Visual Basic

GetCoords Method

Syntax

CWIMAQPoints.GetCoords XPointArray, YPointArray

Purpose

Gets the coordinates for all the points in this points collection.

Remarks

Use this method for improved performance over using .Item() to access the points.

Parameters

XPointArray As Variant

The x-coordinates of the points in this points collection.

YPointArray As Variant

The x-coordinates of the points in this points collection.

Example

Dim Points As New CWIMAQPoints
Dim I As Long
Dim XPointArray, YPointArray

Points.GetCoords XPointArray, YPointArray
For I = LBound(XPointArray, 1) To UBound(XPointArray, 1)
' XPointArray(I) and YPointArray(I) are the coordinates of
' the Ith point in Points.
Next I