Description

Selects data source list for data viewer.

Return Type

A String value.  

String of selected DataSource keys in the same format as input string.

Syntax

object.SelectDataSource ([DataSource], [NeedUpdate])

The SelectDataSource Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataViewer.
DataSourceOptional. A String value.

string that contains a comma delimited list of measurements. Example:

   Sub SetDataSource()
        DataViewer.SelectDataSource “McImage.Width,McImage.Height”
   End Sub
If DataSource is empty, the Select data source dialog is shown, where
user can select data source manually.

 DataViewer.SelectDataSource ""

NeedUpdateOptional. A Boolean value.

boolean, that specifies whether the data in all data windows DataViewer has to be updated according to the new DataSource. This parameter is optional, default value is TRUE.