SetObjectInvalid method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Sets a specified object in an IDO collection to indicate an error state.
Syntax
object.SetObjectInvalid( integer, Boolean )
Part | Description |
object | Required. A reference to a valid IDO collection object. |
integer | Required. An integer indicating the index number of an object in the entries for the current collection. |
Boolean | Required.
Determines whether the error state is set:
|
Example
Sub Main()
Dim i As Integer
For i = 0 To ThisForm.PrimaryIDOCollection.GetNumEntries() - 1
If ThisForm.PrimaryIDOCollection.IsObjectModified(i) And _
ThisForm.Components("CatalogNoGridCol").Text = "AA-10000" Then
ThisForm.PrimaryIDOCollection.SetObjectInvalid(i, True)
End If
Next i
End Sub