WinStudio

IsObjectNew Method

Applies To

IWSIDOCollection interface

Definition

Returns a Boolean value indicating whether the object in a specified IDO collection is marked as new.

Syntax

object.IsObjectNew( integer )

  Part

  Description

object Required. The name of a valid IDO collection object.
integer Required. The index number of an object in the entries for the current IDO collection.

Remarks

A return value of:

If the specified IDO collection might not have focus, use this method. If the specified IDO collection has focus, use the IsCurrentObjectNew method.

Example

Sub Main()
    Dim i As Integer
    i = ThisForm.PrimaryIDOCollection.GetCurrentObjectIndex()
    If ThisForm.PrimaryIDOCollection.IsObjectNew(i) Then
        Application.ShowMessage("This is a new record.")
    End If
End Sub