DIAdem Help

Method: Swap for Elements <DataStore>

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

Method: Swap for Elements <DataStore>

Swaps the position of a data element with the position of another data element in a data store in DIAdem NAVIGATOR.

Object.Swap(NameOrIndex1, NameOrIndex2)
ObjectElements <DataStore>
Object with this method
NameOrIndex1Variant
Specifies the name or the index of the first data element.
NameOrIndex2Variant
Specifies the name or the index of the second data element.

The following example swaps the first data element with the second data element:

VBScriptPython

 

Call Navigator.ConnectDataStore("ASAM Browse Settings Example").RootElements(1).Children.Swap(1,2)