Method: Exists for Properties <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: Exists for Properties <Data>
Method: Exists for Properties <Data>
Checks whether a Property object with a specific name already exists in the properties collection in the script interface for internal data.
bExists = Object.Exists(Name)
Object | Properties <Data> Object with this method |
Name | String Specifies the name of the property to be checked. DIAdem does not check the name in accordance with the DIAdem Name Conventions. |
bExists | Boolean The value is TRUE if the collection contains an object with the specified name. |
The following example generates the TimeEnd data set property only if the TimeBegin data set property already exists:
VBScript | Python |
If Data.Root.Properties.Exists("TimeBegin") Then Call Data.Root.Properties.Add("TimeEnd", CurrTime) End If