DIAdem Help

Method: AddProperties for Properties <DataPlugin>

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

Method: AddProperties for Properties <DataPlugin>

Adds a list of properties to the Properties collection.

Object.AddProperties(Properties, Prefix)
ObjectProperties <DataPlugin>
Object with this method
PropertiesProperties <DataPlugin>
Specifies a collection of properties.
PrefixVariant
Specifies the prefix of the names of the added properties.
Note  If the specified custom property exists, the AddProperties method overwrites the value of the property.

The following example adds the properties of the second channel group to the properties of the first channel group:

Call Root.ChannelGroups(1).Properties.AddProperties(Root.ChannelGroups(2).Properties)

The following example checks all the elements that are associated with the Store object. If a ChannelGroup type element exists, the example adds the properties of this element to the Root properties. The example uses the element type as the prefix for the names of the new Root properties.

For j = 1 to FromStore.Children.Count
  If FromStore.Children.Item(j).IsKindOf(eStoreChannelGroup) Then
    Call Root.Properties.AddProperties(StoreElement.Properties, StoreElement.Type & i & "_") 
  End If
Next

Log in to get a better experience