IsCurrentObjectDeleted method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Returns a Boolean value indicating whether the current object in the specified IDO collection is marked for deletion.
Syntax
object.IsCurrentObjectDeleted( )
Part | Description |
object | Required. The name of a valid IDO collection object. |
Remarks
A return value of:
- TRUE indicates the current object is marked for deletion.
- FALSE indicates that the current object is not marked for deletion.
If the specified IDO collection has the focus, use this method. If the specified collection might not have the focus, use the IsObjectDeleted method.
Example
Sub Main()
If ThisForm.PrimaryIDOCollection.IsCurrentObjectDeleted() Then
ThisForm.Components("comboBox1").Enabled() = False
Else
ThisForm.Components("comboBox1").Enabled() = True
End If
End Sub