Method: IsKindOf for Root <Data>
- Updated2024-09-12
- 2 minute(s) read
Internal Data > Methods > Method: IsKindOf for Root <Data>
Method: IsKindOf for Root <Data>
Checks the type of an element in the script interface for internal data.
bIsKindOf = Object.IsKindOf(Type)
Object | Root <Data> Object with this method | ||||||||||||||||||||||||
Type | String Specifies the type of the element to be checked. Enumeration with the following selection terms:
| ||||||||||||||||||||||||
bIsKindOf | Boolean The value is TRUE if the object is the specified type. |
The following example prompts you to select an item from the Data Portal and then to disable the interaction mode. The example displays whether you have selected the data set (root), a channel group, or a channel, in the Data Portal:
VBScript | Python |
Dim oMyElement Call MsgBoxDisp ("Please select one element in the Data Portal. Click 'interaction off' after selecting.") Call InteractionOn() Set oMyElement = Portal.ActiveView.Selection(1) If oMyElement.IsKindOf(eDataRoot) Then Call MsgBoxDisp ("Selected element: Root") ElseIf oMyElement.IsKindOf(eDataChannelGroup) Then Call MsgBoxDisp ("Selected element: ChannelGroup") ElseIf oMyElement.IsKindOf(eDataChannel) Then Call MsgBoxDisp ("Selected element: Channel") End If