Method: GetReference for BaseChannel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: GetReference for BaseChannel <Data>
Method: GetReference for BaseChannel <Data>
Returns a channel reference of a channel in the script interface for internal data.
sGetReference = Object.GetReference(ReferenceType)
| Object | BaseChannel <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 (sMyChannelReference)