Method: GetReference for Channels <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: GetReference for Channels <Data>
Method: GetReference for Channels <Data>
Returns the channel reference of channels in a list, 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 | Channels <Data> Object with this method | |||||||||||||||
| ReferenceType |
| |||||||||||||||
| sGetReference | String Receives the channel reference. |
The following example displays the channel list with references to all the channels in the default channel group, in the syntax that the ExtendChnName variable specifies:
| VBScript | Python |
Dim sChannelList, oMyGroup Set oMyGroup = Data.Root.ActiveChannelGroup sChannelList = oMyGroup.Channels.GetReference(ExtendChnName) Call MsgBoxDisp (sChannelList)