VBScript
(Available from version 7.2 onwards)
Functions
Executes a specified VBScript function located in a specified file. You can specify the values of the parameters required by the function. If the function returns a value, it is returned as text.
Parameters
Parameter |
Input Type |
Description |
---|---|---|
full path |
Text |
The full path to the file that includes the function. |
function name | Text | The name of the function to execute. |
parameters | List of Text | A list of the input parameters expected by the function. |
Returns
If the function returns a value, it is returned as text.
Example
This workflow executes a VBScript function called myFunction , located in the file C:\scripts\tools.vbs. Two input parameter values are specified, 3 and 5. The result is stored in the text variable textVar.
The content of the file tools.vbs is shown below. The function myFunction multiplies the two input parameter values and returns the result.
When the workflow is executed, the value of textVar is set to 15, as expected.
Executes a VBScript function included in the text specified. You can specify the values of the parameters required by the function. If the function returns a value, it is returned as text.
Parameters
Parameter |
Input Type |
Description |
---|---|---|
code |
Text |
The VBScript function code. |
function name | Text | The name of the function to execute. |
parameters | List of Text | A list of the input parameters expected by the function. |
Returns
If the function returns a value, it is returned as text.
Example
This workflow executes a VBScript function called myFunction located in the text:
Function myFunction(param_1, param_2) myFunction = param_1 * param_2 End Function
The function myFunction multiplies the two input parameter values and returns the result.
Two input parameter values are specified, 3 and 5. The result is stored in the text variable textVar.
When the workflow is executed, the value of textVar is set to 15, as expected.