ISolveInterface.ActivateRevision (method)

Makes a specific revision the active revision.
Syntax: SCODE = object.ActivateRevision ( itemType, name, revision, comment )
Parameters:
itemType As String - A string representing the item type of the expression.
name As String - A string representing the name of the expression.
revision As long - The revision of the expression to activate.
comment As String - A comment that will be stored along with this activation.
Description: browser.ActivateRevision activates the selected revision of the expression. 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

i = browser.ActivateRevision("VEHICLE ORDER", "Test3", 1, "Now activate")
If CInt(i) = 0 Then MsgBox "Activated revision"