IsObjectDeleted method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Returns a Boolean value indicating whether an object in a specified IDO collection object is marked for deletion.
Syntax
object.IsObjectDeleted( integer )
Part | Description |
object | Required. The name of a valid IDO collection object. |
integer | Required. The index number of an object in the entries for the current IDO collection. |
Remarks
A return value of:
- TRUE indicates that the object is marked for deletion.
- FALSE indicates that the object is not marked for deletion.
If the specified IDO collection might not have focus, use this method. If the specified IDO collection object has focus, use the IsCurrentObjectDeleted method.
Example
Sub main()
Dim i As Integer
i = ThisForm.PrimaryIDOCollection.GetCurrentObjectIndex()
If ThisForm.PrimaryIDOCollection.IsObjectDeleted(i) Then
Application.ShowMessage("This record will be deleted upon saving.")
End If
End Sub