ISolveInterface.RollbackExpressionByTime (method)

Rollback to a specific time.
Syntax: SCODE = object.RollbackExpressionByTime ( timestamp, itemType, name, rollbackUser, overwrite, comment )
Parameters:
timestamp As DATE - Point to rollback to.
itemType As String - A string that represents the item type of the expression.
name As String - The name of the expression.
rollbackUser As String - Restrict rollback to the changes a particular user made. May be left blank.
overwrite As boolean - Only relevant when rollbackUser is specified. Indicates whether other users' changes 'in between' should also be rolled back.
comment As String - Comment to associate with the rollback.
Description: browser.RollbackExpressionByTime rolls back revisions based on a time stamp.
If there are no problems with the database then a value of S_OK is returned. If there are problems then a value of S_FALSE is returned.


Example

Dim rollbackTime As Date
rollbackTime = Date + Time
i = browser.RollbackExpressionByTime(rollbackTime, "VEHICLE ORDER", "expression", "me", 1, "Rolling back")
If CInt(i) = 0 Then MsgBox "RollbackExpressionByTime worked."