SaveCurrentDeferStateUpdate method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Saves the current object in a collection but does not perform subsequent operations that WinStudio normally performs after a save (see "Remarks" below). Returns a Boolean value indicating whether the object was saved successfully.
Syntax
object.SaveCurrentDeferStateUpdate( )
Part | Description |
object | Required. A reference to a valid IDO collection object. |
Remarks
A return value of:
- TRUE indicates that the current object was saved successfully.
- FALSE indicates that the object was not saved successfully.
This method is designed to be used in conjunction with the UpdateCurrentStatePostSave method. The operation of the two methods on the current object in a collection is similar to the operation of the SaveDeferStateUpdate method and the UpdateStatesPostSave method on all objects in a collection.
Example
Sub Main()
Dim bSuccess As Boolean
Dim ReturnValue As String
bSuccess = ThisForm.CurrentIDOCollection.SaveCurrentDeferStateUpdate()
If (bSuccess) Then
End If
If (bSuccess) Then
ThisForm.CurrentIDOCollection.UpdateCurrentStatePostSave()
Else
End If
ReturnValue = "-1"
End Sub