Description:
Set a POST parameter to be passed to the to-be-called splx file.
Note:
The function sets a POST parameter string argpost to be passed to the splx file.
Example:
argtest.splx
Define a cellset parameter:
|
A |
|
1 |
return argpost |
The splx file returns parameter argpost |
Access argtest.splx through the URL to pass in the POST parameter. Below is the content of test.html:
<form method=post action="http://127.0.0.1:8503/argtest.splx">
<input type=text name="aa" value="aa111">
<input type=text name="bb" value="bb222">
<input type=submit value=submit>
</form>
Start HTTP service to access test.html:
Click 【submit】 button to get the following result:
Description:
Return a list of the specified script file’s argument names.
Syntax:
arguments(spl)
Note:
The function returns a list of the specified .dfx/.splx/.spl script file’s argument names. It returns argument names in the current script file when the parameter is absent.
Parameter:
spl |
Name of a script file in the format of .dfx/.splx/.spl. |
Return value:
Sequence
Example:
Set cellset arguments for test.splx:
Set cellset arguments for the current script file:
|
A |
|
1 |
=arg1+" world!" |
Result: Hello world! |
2 |
=arg2+88 |
Result: 108. |
3 |
=arguments() |
Return a list of the current script file’s argument names.
|
4 |
=arguments("test.splx") |
Return a list of argument names from script file test.splx.
|