argpost

Read(2659) Label: post, parameter invocation,

Description:

Set a POST parameter to be passed to the to-be-called dfx file.

Note:

The function sets a POST parameter string argpost to be passed to the dfx file.

Example:

argtest.dfx

Define a cellset parameter:

 

A

 

1

return argpost

The dfx file returns parameter argpost

Access argtest.dfx 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.dfx">

<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:

arguments(spl)

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:

A 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.