CopyEnabled property (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Enables/Disables the copying of records for the specified IDO collection, or returns a Boolean value indicating whether the record copying is enabled.

Set Syntax

object.CopyEnabled = Boolean

  Part   Description
object Required. A reference to a valid IDO collection object.
Boolean Required. Determines whether copying of records is enabled.
  • True : Enables Copy operations.
  • False : Disables Copy operations.

Get Syntax

object.CopyEnabled

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

Remarks

This property enables/disables the Copy option on the Actions menu only. It does not govern the copying of entire collections.

A return value of:

  • TRUE indicates that records can be copied.
  • FALSE indicates that records cannot be copied.

Example

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