ISolveInterface.GetNamedExpression (method)

Retreives the name expression.
Syntax: SCODE = object.GetNamedExpression ( itemType, name, revision, expression )
Parameters:
itemType As String - The item type of the expression.
name As String - The name of the expression.
revision As long - The revision of the expression to fetch. Setting this parameter to -1 will cause the active revision to be retrieved.
expression As BSTR* - The text of the matching expression.
Description: browser.GetNamedExpression returns the expression text that matches the search criteria. 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 expression As String
i = browser.GetNamedExpression("VEHICLE ORDER", "Test3", 1, expression)
If CInt(i) = 0 Then MsgBox "GetNamedExpression = " + expression