DeleteEnabled property (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Enables/Disables the ability to delete records in a specified IDO collection, or returns a Boolean value indicating whether deletion is enabled for the collection.

Set Syntax

object.DeleteEnabled = Boolean

  Part   Description
object Required. A reference to a valid IDO collection object.
Boolean Required. Determines whether deletion of records is enabled or disabled:
  • True: Enables the deletion of records.
  • False: Disables the deletion of records.

Get Syntax

object.DeleteEnabled

  Part   Description
object Required. A reference to a valid IDO collection object.

Remarks

A return value of:

  • TRUE indicates that the deletion of records is enabled.
  • FALSE indicates that the deletion of records is disabled.

Example

Sub Main()
   If ThisForm.CurrentIDOCollection.DeleteEnabled Then
      ThisForm.CurrentIDOCollection.DeleteEnabled = False
   Else
      ThisForm.CurrentIDOCollection.DeleteEnabled = True
   End If
End Sub