Method: GetReference for ComplexChannel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: GetReference for ComplexChannel <Data>
Method: GetReference for ComplexChannel <Data>
Returns the channel reference of a complex channel in the script interface for internal data. Use this method when you are working with data objects and need channel references for calculations or for layout configurations.
sGetReference = Object.GetReference(ReferenceType)
Object | ComplexChannel <Data> Object with this method | |||||||||||||||
ReferenceType |
| |||||||||||||||
sGetReference | String Receives the channel reference. |
The following example displays the name of the first channel of the default channel group in the syntax that the ExtendChnName variable specifies:
VBScript | Python |
Dim sMyChannelReference, oMyGroup Set oMyGroup = Data.Root.ActiveChannelGroup sMyChannelReference= oMyGroup.Channels(1).GetReference(ExtendChnName) Call MsgBoxDisp ( sMyComplexChannelReference)