DIAdem Help

Method: IsKindOf for Element <DataPlugin>

  • Updated2024-09-12
  • 1 minute(s) read

Method: IsKindOf for Element <DataPlugin>

Checks whether an Element object is a certain type.

iIsKindOf = Object.IsKindOf(Type)
ObjectElement <DataPlugin>
Object with this method
TypeString
Specifies the object type to be checked.
eStoreChannelGroup Channelgroup type object.
eStoreChannel Channel type object
iIsKindOfLongInteger
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