WinStudio
IWSIDOCollection interface
Returns a Boolean value indicating whether the middle-tier processing of an object in the specified IDO collection is changed from a SQL INSERT operation to a SQL UPDATE operation.
object.GetObjectForceUpdate( integer )
Part |
Description |
| object | Required. The name of a valid IDO collection object. |
| integer | Required. An integer indicating the index number of an object in the entries for the current IDO collection. |
A return value of:
It is your responsibility to determine whether it is appropriate to change from an INSERT to an UPDATE operation. Neither WinStudio nor the middle tier performs error checking to determine whether using this method is appropriate.
Sub Main()
Dim bUpdate As Boolean
Dim intIndex As Integer
If ThisForm.PrimaryIDOCollection.IsCurrentObjectPropertyModified("StringTableName") Then
intIndex = ThisForm.PrimaryIDOCollection.GetCurrentObjectIndex()
bUpdate = ThisForm.PrimaryIDOCollection.GetObjectForceUpdate(intIndex)
If bUpdate Then
Application.ShowMessage("GetObjectForceUpdate operation succeeded.")
Else
Application.ShowMessage("GetObjectForceUpdate operation failed.")
End If
End If
End Sub