IsObjectNewAndUnmodified method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Returns a Boolean value indicating whether the object in a specified IDO collection is marked as new and has not been modified.
Syntax
object.IsObjectNewAndUnmodified( 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:
- TRUE indicates that the object is marked as new and has not been modified.
- FALSE indicates either that the object is not marked as new, that it has been modified, or both.
If the specified IDO collection might not have focus, use this method. If the specified IDO collection has focus, use the IsCurrentObjectNewAndUnmodified method.
Example
Sub Main() Dim i As Integer For i = 0 to ThisForm.PrimaryIDOCollection.GetNumEntries() - 1 If ThisForm.PrimaryIDOCollection.IsObjectNewAndUnmodified(i) Then ThisForm.Components("PaymentTypeCombo").Text = "" End If Next i End Sub