Functions for Operation Variables

The following functions can be used retrieving variables that refer to the specific operations in a process file:

GetOperVarVal(procName As String, operName As String, VarID As VarID, val)

GetOperVarVal2(procName As String, operName As String, VarID As VarID, val, val2)

GetOperVarVal3(procName As String, operName As String, VarID As VarID, val, val2, val3) 

Whereas the next two functions are used to set the value of the operation related variable:

SetOperVarVal(procName As String, operName As String, VarID As VarID, val)

SetOperVarVal2(procName As String, operName As String, VarID As VarID, val, val2)

SetOperVarVal3(procName As String, operName As String, VarID As VarID, val, val2, val3)

The first argument is the procedure name and the second is the operation name. The third argument (varID) is the variable identifier that specifies the variable we want to access and the fourth argument (val) is the variables value. The fifth/sixth arguments (val2/val3), also of VARIANT type, are extra identifiers needed for the variable we want to access. The Variable ID that needs to be used for each variable is listed in Operation Variables. Please, see Accessing Pro-Designer Variables with COM for general information on accessing the Pro-Designer variables with the COM Server.

For a sample script that illustrates the use of these functions, see Scripts For Operation Variables.