Copy method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Creates a copy of a designated record in the specified IDO collection and returns a Boolean value indicating whether the operation was successful.

Syntax

object.Copy( )

  Part   Description
object Required. A reference to an IDO collection object.

Remarks

You can copy data from a selected object or from the current object.

Returns a Boolean value:

  • TRUE - Indicates that the Copy operation was successful.
  • FALSE - Indicates that the Copy operation failed.

Example

Sub Main()
   Dim bCopy As Boolean
   Dim intIndex As Integer
   bCopy = ThisForm.PrimaryIDOCollection.Copy()
   If bCopy Then
      intIndex = ThisForm.PrimaryIDOCollection.GetCurrentObjectIndex()
      ThisForm.PrimaryIDOCollection.SetObjectProperty("LanguageDesc", intIndex, "New value")
      ThisForm.PrimaryIDOCollection.NotifyDependentsToRefresh("LanguageDesc")
   End If
End Sub