IsObjectModified method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Returns a Boolean value indicating whether an object in a specified IDO collection has been modified.
Syntax
object.IsObjectModified( 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 has been modified (by entering or changing data).
- FALSE indicates that the object has not been modified.
If the specified IDO collection might not have focus, use this method. If the specified IDO collection has focus, use the IsCurrentObjectModified method.
Example
Sub Main() Dim i As Integer Dim iEnableOrDisable As Integer Dim curCol As IWSIDOCollection curCol = ThisForm.Components(GetParameter(0)).IDOCollection iEnableOrDisable = 0 For i = 0 To curCol.GetNumEntries - 1 If curCol.IsObjectModified(i) Then iEnableOrDisable = 1 Exit For End If Next i End Sub