New method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Inserts a new object into a specified IDO collection and returns a Boolean value indicating whether this operation was successful.

Syntax

object.New( )

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

Remarks

A return value of:

  • TRUE indicates that the new object was inserted successfully.
  • FALSE indicates that the new object was not inserted successfully.

Example

Sub Main()
   If (ThisForm.PrimaryIDOCollection.GetNumEntries() > 1 And _
      (Not ThisForm.PrimaryIDOCollection.IsCurrentObjectTheAutoInsertRow())) Then
       ThisForm.PrimaryIDOCollection.New()
   End If
End Sub