DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

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)
ObjectProperties <Data>
Object with this method
NameString
Specifies the name of the property to be checked. DIAdem does not check the name in accordance with the DIAdem Name Conventions.
bExistsBoolean
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:

VBScriptPython

 

If Data.Root.Properties.Exists("TimeBegin") Then
Call Data.Root.Properties.Add("TimeEnd", CurrTime)
End If
In This Section
Was this information helpful?