The +setarg function sets the value of the specified argument. Any arguments that are not specified are left blank.
Note:
The +setarg function does not take effect until it is sent to the VOX Server by a +send function.
Use the Node Inspector to assign and edit the following attributes.
Attribute |
Value |
Description |
Put Return Code In |
|
Select the variable in which to store the return code. |
VESP Function Name |
+setarg |
Sets the value of the specified argument. |
Arg 1 |
|
Select the variable in which to store a string indicating the argument you are setting ("1", "2", ..., "62"). The variable must have Length set to 34 and Type set to character. |
Arg 2 |
|
Select the variable in which to store a string containing the value of the argument. The variable must have Length set to 256 and Type set to character. |
Arg 3 |
|
Select a Dummy variable. The variable must have Length set to 256 and Type set to character. |
Arg 4 |
|
Select a Dummy variable. The variable must have Length set to 256 and Type set to character. |
Example
The following example shows how to fetch two values (A and B) from the EDU.
+create "VOX.getvdu" "5" |
Create a 5 parameter request. |
+setarg "1" "2df5d9e6003b0000780002a1f430002" |
Set the value of the EDUID. |
+setarg "2" "A" |
Set the value of the second argument to A. |
+setarg "4" "B" |
Skip argument 3, which is where A's result will go, and set the value of the fourth argument to B. |
+send |
Send the request and wait for a response. |
+getarg "3" valueA |
Get A's value. |
+getarg "5" valueB |
Get B's value. |