$Web Form Parm Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_Form_Parm_Len}}
{{DISPLAYTITLE:$Web_Form_Parm_Len}}
<span class="pageSubtitle"><section begin="desc" />Length of form field<section end="desc" /></span>
<span class="pageSubtitle">Length of form field</span>
 




Line 9: Line 8:


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


===Syntax terms===
===Syntax terms===
Line 16: Line 15:
<tr><th>%rc</th>
<tr><th>%rc</th>
<td>A numeric variable to contain a return code.</td></tr>
<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 <var>[[$Web_Form_Name]]</var>. Required argument if <var class="term">occurrence</var> not specified, otherwise optional.</td></tr>
<td>The name of the form field, returned by <var>[[$Web_Form_Name]]</var>. Required argument if <var class="term">occurrence</var> not specified, otherwise optional.</td></tr>
<tr><th>occurrence</th>
<tr><th>occurrence</th>
<td>The occurrence number of a form field, or the occurrence number of the form field matching <var class="term">fieldname</var>, if <var class="term">fieldname</var> is specified. Optional argument if <var class="term">fieldname</var> is specified, otherwise it is required.
<td>The occurrence number of a form field, or the occurrence number of the form field matching <var class="term">fieldname</var>, if <var class="term">fieldname</var> is specified. Optional argument if <var class="term">fieldname</var> is specified, otherwise it is required.
Line 28: Line 29:
<li><var>[[$Web_Num_Form]]</var>
<li><var>[[$Web_Num_Form]]</var>
</ul>
</ul>


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

Latest revision as of 22:33, 5 June 2013

Length of form field


$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

%rc = $Web_Form_[Parm_]Len( fieldname, occurrence )

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