Property: Children for Store
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Children for Store
Property: Children for Store
Contains the StoreElements collection associated with a Store object.
StoreElements object with read access.
Set oElements = Object.Children
| Object | Store Object with this property |
| oElements | Elements <DataPlugin> Returned object |
The following example transfers the information about channel groups in the FromStore object, 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