ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem Help

Object: Element <DataStore>

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

Object: Element <DataStore>

The Element object provides a data element in a data store. A data element is a specific instance of an entity.

The following example displays the name of the data element below the first root element:

VBScriptPython

 

Dim oMyDataStore, oMyRootElement, oMyElements, Element, Output
Set oMyDataStore = NAVIGATOR.ConnectDataStore("ASAM Browse Settings Example")
Set oMyRootElement = oMyDataStore.RootElements(1)
Set oMyElements = oMyRootElement.Children
For Each Element in oMyElements
  Output = Output & vbCrLf & Element.Name
Next
Call MsgBoxDisp("Name of children elements: " & Output)

Note  Use the ElementWithValues object with the associated methods and properties if the data element was derived from the AOLocalColumn type.

Note  Refer to Working with the Elements Collection and the Element Object for general information on working with the elements.