Property: Properties for Element <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Properties for Element <DataPlugin>
Property: Properties for Element <DataPlugin>
Contains the Properties collection associated with an Element object.
Set oProperties = Object.Properties
Object | Element <DataPlugin> Object with this property |
oProperties | Properties <DataPlugin> Returned object |
The following example transfers the information in the FromStore object about channel groups and their properties, into the TDM data model structure:
Sub ReadStore(FromStore) Call FindAndCreateGroups(FromStore.Children) End Sub Sub FindAndCreateGroups(StoreElements) Dim StoreElement Dim TDMGroup For Each StoreElement in StoreElements If StoreElement.IsKindOf(eStoreChannelGroup) Then Set TDMGroup = Root.ChannelGroups.Add(StoreElement.Name) Call TDMGroup.Properties.AddProperties(StoreElement.Properties) Else Call FindAndCreateGroups(StoreElement.Children) End If Next End Sub