SetObjectDeleted method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Sets the object in a specified IDO collection to be deleted.

Syntax

object.SetObjectDeleted( integer, Boolean )

  Part   Description
object Required. A reference to a valid IDO collection object.
integer Required. Indicates the index number of an object in the current collection.
Boolean Required. Determines whether the object is deleted:
  • TRUE: The object is to be deleted.
  • FALSE: The object is not to be deleted.

Example

Sub Main()
   Dim strUserName As String
   Dim Cache As IWSIDOCollection
   Dim ReturnValue As String
   strUserName = GetParameter(0)
   Cache = ThisForm.PrimaryIDOCollection
   If (strUserName = "sa") Then
      ReturnValue = "1"
      Cache.SetObjectDeleted(Cache.GetCurrentObjectIndex(), False)
   End If
End Sub