Method: Exists for Elements <DataStore>
- Updated2024-09-12
- 2 minute(s) read
DIAdem NAVIGATOR > Methods > Method: Exists for Elements <DataStore>
Method: Exists for Elements <DataStore>
Checks in a data store whether the data element with the specified name already exists.
bExists = Object.Exists(Name)
| Object | Elements <DataStore> Object with this method |
| Name | String Specifies the name of the data element. |
| bExists | Boolean 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:
| VBScript | Python |
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"))
See Also
Procedures
Configuring the Search Results | Defining Search Areas | Executing a Search with OR Operations | Executing a Text Search | Indexing Search Areas | Optimizing Custom Properties | Saving and Loading a Search Query | Searching for Data on a Different Computer in the Network | Searching for Multiple Properties | Sorting Search Results before Executing a Search
Examples
Brake Tests for Trucks | Checking DataPlugins for Timeout | Combining DataFinder Search Results | Context Menu for the Search Results of the DataFinder | Creating ATFX Files from the Context Menu of an ASAM Data Store | Customized User Interface | Evaluation Wizard for the Search Results of the DataFinder | Filtering Data with a Dialog Box | Filtering Data without a Dialog Box | Search and Evaluation Functions in User Dialog Boxes | Searching for and Evaluating Channels | Searching for Channels in the NAVIGATOR | Searching for Data Sets Marked "Failed" in Data Stores | Searching for Data Sets Marked "Failed" | Searching for Properties and Evaluating the Associated Channels | Varying Browse Settings of a Data Store