FindDataSource Subroutine

Returns the string name of the data source that is connected to a property of the specified object if the data source is an iFIX database tag or animation object.

Syntax

FindDataSource (Object, [strProperty])

Properties

The FindDataSource function syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

strProperty

String. (Optional). The property connected to the data source. If no property is specified, the function returns the connection to the first property if finds that is connected to a data source.

Return Value

String. The string name of the data source object.

Remarks

This function does not return a value for items within groups. For example, if you have a group of data links all connected to different data sources but, the group itself is not connected to a data source, this function will return an empty string. It only returns the name of the data source that is connected to the object you pass in for the Object parameter.

 

Example