DIAdem Help

Method: Exists for Elements <DataStore>

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

Method: Exists for Elements <DataStore>

Checks in a data store whether the data element with the specified name already exists.

bExists = Object.Exists(Name)
ObjectElements <DataStore>
Object with this method
NameString
Specifies the name of the data element.
bExistsBoolean
The value is TRUE if the data element with the specified name already exists.

The following example checks whether the data element MyTest already exists:

VBScriptPython

 

Dim oMyDataStore, oMyRootElement, oMyStoreElements
Set oMyDataStore = NAVIGATOR.ConnectDataStore("ASAM Browse Settings Example")
Set oMyRootElement = oMyDataStore.RootElements(1)
Set oMyStoreElements = oMyRootElement.Children
Call MsgBoxDisp(oMyStoreElements.Exists("MyTest"))