DIAdem Help

Method: Exists for Properties <DataPlugin>

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

Method: Exists for Properties <DataPlugin>

Checks whether a Property object with a specific name exists.

iExists = Object.Exists(sName)
ObjectProperties <DataPlugin>
Object with this method
sNameString
Specifies the name of the property to be checked.
iExistsLongInteger
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:

If Root.Properties.Exists("TimeBegin") Then
  Call Root.Properties.Add("TimeEnd", CreateTime(2004,6,17,10,0,0,0,0,0))
End If

Log in to get a better experience