CopyTo Method

NI Vision for Visual Basic

CopyTo Method

Syntax

CWIMAQRegions.CopyTo DestRegions

Purpose

Copies one regions collection into another.

Parameters

DestRegions As CWIMAQRegions

The destination regions.

Example

Private Sub Run_Click()
    'Copy the regions collection from one viewer to another
    CWIMAQViewer1.Regions.CopyTo CWIMAQViewer2.Regions
End Sub