WinStudio

IsCurrentObjectNew Method

Applies To

IWSIDOCollection interface

Definition

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

Syntax

object.IsCurrentObjectNew( )

  Part

  Description

object Required. The name of a valid IDO collection object.

Remarks

A return value of:

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

Example

Sub Main()
    If ThisForm.PrimaryIDOCollection.IsCurrentObjectNew() Then
        ThisForm.Components("PaymentTypeCombo").Text = "CC"
    End If
End Sub