SetObjectPropertyModified method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Sets the property of an object in a specified IDO collection to "modified", based on specified criteria.
Syntax
object.SetObjectPropertyModified( string, integer, Boolean )
| Part | Description | 
| object | Required. A reference to a valid IDO collection object. | 
| string | Required. The name of the object property. | 
| integer | Required. An integer indicating the index number of an object in the entries for the current IDO collection. | 
| Boolean | Required.
                                       					 Determines whether the object property is marked as "modified". 
                                       					 
                                       
  | 
                                    
                                 
Example
Sub Main() Dim i As Integer Dim SubColCache As IWSIDOCollection Dim strCompare As String SubColCache = ThisForm.Components(GetParameter(0)).IDOCollection For i = 0 To SubColCache.GetNumEntries - 1 If (SubColCache.IsObjectNew(i)) Then strCompare = SubColCache.GetObjectProperty(GetParameter(1), i) If (strCompare = GetParameter(2)) Then SubColCache.SetObjectForceUpdate(i, True) SubColCache.SetObjectNew(i, False) SubColCache.SetObjectPropertyModified(GetParameter(1), i, False) End If End If Next i End Sub