Method: IsKindOf for Element <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: IsKindOf for Element <DataPlugin>
Method: IsKindOf for Element <DataPlugin>
Checks whether an Element object is a certain type.
iIsKindOf = Object.IsKindOf(Type)
| Object | Element <DataPlugin> Object with this method | ||||
| Type | String Specifies the object type to be checked.
| ||||
| iIsKindOf | LongInteger The value is TRUE if the StoreElement object is the specified type. |
The following example creates a new channel group for each Element object that is a Channelgroup type:
Dim StoreElement Dim TDMGroup For Each StoreElement in FromStore.Children If StoreElement.IsKindOf(eStoreChannelGroup) Then Set TDMGroup = Root.ChannelGroups.Add(StoreElement.Name) Call TDMGroup.Properties.AddProperties(StoreElement.Properties) End If Next