GetObjectForceUpdate method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

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.

Syntax

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.

Remarks

A return value of:

  • TRUE indicates that the middle-tier processing was changed to UPDATE.
  • FALSE indicates that the middle-tier processing was not changed to UPDATE.

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.

Example

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