Method: Swap for Elements <DataStore>
- Updated2024-09-12
- 1 minute(s) read
DIAdem NAVIGATOR > Methods > Method: Swap for Elements <DataStore>
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)
| Object | Elements <DataStore> Object with this method |
| NameOrIndex1 | Variant Specifies the name or the index of the first data element. |
| NameOrIndex2 | Variant Specifies the name or the index of the second data element. |
The following example swaps the first data element with the second data element:
| VBScript | Python |
Call Navigator.ConnectDataStore("ASAM Browse Settings Example").RootElements(1).Children.Swap(1,2)