Sub Wsw_ActionsOnUpdate($iUpdateStatus, ByRef $sStatusMessage, ByRef $iStatusCode)


This function is called to perform actions after an update, initialization, or error.


This function is called only when the "Notifications/Actions on initialization/update/error" feature in the bookmark properties is configured.


This Event function is called after all other bookmark actions, which are defined in the bookmark properties, have been executed.


Parameters


  • $iUpdateStatus ... Integer value. Indicates whether an initialization, update, or error occurred.
  • $sStatusMessage ... String expression. Status message that is displayed in the status column. The default value is an empty string.
  • $iStatusCode ... Integer value. Indicates whether actions were performed successfully or an error occurred. The default value is 0.


Valid values of $iUpdateStatus


  • 1 ... Bookmark has been initialized
  • 2 ... Bookmark has been updated
  • 3 ... An error occurred while checking the bookmark


Valid values of $iStatusCode


  • 0 ... OK, actions were performed successfully.
    Default value. Must not be assigned manually.
  • 1 ... Error.
    Should be returned if actions could not be performed. The bookmark check is not aborted. The status code is currently written only to the bookmark log file and does not affect the bookmark check.


Example:

Sub Wsw_ActionsOnUpdate($iUpdateStatus, ByRef $sStatusMessage, ByRef $iStatusCode)

   Dim $sMem

   If $iUpdateStatus = 2 Then
      $sMem = Bookmark_LoadCacheFile(1)
      StringToFile("c:\data\changed.htm", $sMem)
   End If
End Sub