$Web Form Parm Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 4: Line 4:




<var>$Web_Form_Len</var> retrieves the length of a field in a form. $Web_Form_Parm_Len is a somewhat more syntactically correct synonym for $Web_Form_Len.
<var>$Web_Form_Len</var> retrieves the length of a field in a form. <var>$Web_Form_Parm_Len</var> is a somewhat more syntactically correct synonym for <var>[[$Web_Form_Len]]</var>.
 
<var>$Web_Form_Len</var> takes two arguments and returns a number, or zero if the field does not exist.
 
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RC = $WEB_FORM_[PARM_]LEN( fieldname, occurrence )
<p class="syntax"><section begin="syntax" /> %rc = $Web_Form_[Parm_]Len( fieldname, occurrence )
<section end="syntax" /></p>
<section end="syntax" /></p>


 
===Syntax terms===
<var>$Web_Form_Len</var> takes two arguments and returns a number, or zero if the field does not exist.
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%rc</th>
<td>A numeric variable to contain a return code.</td></tr>
<tr><th>fieldname</th>
<tr><th>fieldname</th>
<td>The name of the form field, returned by $Web_Form_Name. Required argument if occurrence not specified, otherwise optional.</td></tr>
<td>The name of the form field, returned by $Web_Form_Name. Required argument if occurrence not specified, otherwise optional.</td></tr>
Line 18: Line 22:
</td></tr></table>
</td></tr></table>


 
==See also==
See also:
<ul>
<ul>
 
<li><var>[[$Web_Form_Name]]</var>
<li>[[$Web_Form_Name]]  
<li><var>[[$Web_Form_Parm]]</var>
<li>[[$Web_Form_Parm]]  
<li><var>[[$Web_Num_Form]]</var>
<li>[[$Web_Num_Form]]
</ul>
</ul>




[[Category:Janus Web Server $functions|$Web_Form_Parm_Len]]
[[Category:Janus Web Server $functions|$Web_Form_Parm_Len]]

Revision as of 21:34, 6 June 2012

<section begin="desc" />Length of form field<section end="desc" />


$Web_Form_Len retrieves the length of a field in a form. $Web_Form_Parm_Len is a somewhat more syntactically correct synonym for $Web_Form_Len.

$Web_Form_Len takes two arguments and returns a number, or zero if the field does not exist.

Syntax

<section begin="syntax" /> %rc = $Web_Form_[Parm_]Len( fieldname, occurrence ) <section end="syntax" />

Syntax terms

%rc A numeric variable to contain a return code.
fieldname The name of the form field, returned by $Web_Form_Name. Required argument if occurrence not specified, otherwise optional.
occurrence The occurrence number of a form field, or the occurrence number of the form field matching 'fieldname', if fieldname is specified. Optional argument if fieldname is specified, otherwise it is required.

See also