short SetProcVariable(long ProcID, BSTR Name, BSTR Value)
Description
This function assigns a value to the specified variable. This value is substituted for the variable prior to running the procedure. If your procedure has one or more variables, call this function to set the variable values prior to calling RunProc().
Parameters
Name | Description |
---|---|
ProcID | The ID of the procedure as returned from InitializeProc(). |
Name | A string that contains the name of the variable that you want to set. |
Value | A string that contains the value that you want to assign to the variable. |
Return Value
The return value will be zero if successful or non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString() or GetLastErrorType() to get additional error information.
Related Tasks