IsCurrentObjectNewAndUnmodified method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Returns a Boolean value indicating whether the current object in a specified IDO collection is marked as new and has not been modified.

Syntax

object.IsCurrentObjectNewAndUnmodified( )

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

Remarks

A return value of:

  • TRUE indicates that the current object is marked as new and has not been modified.
  • FALSE indicates that either the current object is not marked as new or it has been modified.

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

Example

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