WinStudio
IWSIDOCollection interface
Creates a copy of a designated record in the specified IDO collection and returns a Boolean value indicating whether the operation was successful.
object.Copy( )
Part |
Description |
| object | Required. A reference to an IDO collection object. |
You can copy data from a selected object or from the current object.
Returns a Boolean value:
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