$Web IsIndex Name: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_IsIndex_Name}}
{{DISPLAYTITLE:$Web_IsIndex_Name}}
<span class="pageSubtitle"><section begin="desc" />Name of isindex field<section end="desc" /></span>
<span class="pageSubtitle">Name of isindex field</span>


<var>$Web_IsIndex_Name</var> retrieves the name of an isindex field in a URL.


Since isindex fields are more commonly called "URL parameters," you may want to use this $function's synonym, <var>[[$Web_URL_Parm_Name]]</var>.


$Web_IsIndex_Name retrieves the name of an isindex field in a URL.  
<var>$Web_IsIndex_Name</var> takes a single argument and returns a string or null if the number references a non-existing field.
 
The only parameter is the number of the isindex field for which the name is being requested. This parameter must be specified.  


Since isindex fields are more commonly called "URL parameters," you may want to use this $function's synonym, $Web_URL_Parm_Name (see [[$Web_URL_Parm_Name]]).
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RC = $Web_IsIndex_Name( field_number )
<p class="syntax"><span class="term">%rc</span> = <span class="literal">$Web_IsIndex_Name</span>(<span class="term"> field_number</span> )
<section end="syntax" /></p>
</p>


 
==Usage notes==
$Web_IsIndex_Name takes a single argument and returns a string or null if the number references a non-existing field.
<ul>
 
<li><var>$Web_IsIndex_Name</var> is useful when writing generic server applications, when the server does not know what field name exists at a particular location in an isindex request.
The only parameter is the number of the isindex field for which the name is being requested. This parameter must be specified.
<p class="code">&#42; Get the number of isindex fields.
 
$Web_IsIndex_Name is useful when writing generic server applications, when the server does not know what field name exists at a particular location in an isindex request.
<p class="code"> * Get the number of isindex fields.
   
   
%X = $Web_Num_IsIndex
%X = $Web_Num_IsIndex
   
   
* Load the field names into an array.
&#42; Load the field names into an array.
   
   
FOR %Y FROM 1 TO %X
FOR %Y FROM 1 TO %X
%FIELD(%Y) = $Web_IsIndex_Name(%Y)
  %FIELD(%Y) = $Web_IsIndex_Name(%Y)
END FOR
END FOR
</p>
</p>
<li>For a discussion of isindex requests and data see [[Janus Web Server application coding considerations#URL parameters or isindex data|"URL parameters or isindex data"]].
</ul>


 
==See also==
See also:
<ul>
<ul>
<li><var>[[$Web_IsIndex_Parm_Len]]</var>
<li><var>[[$Web_IsIndex_Parm]]</var>
<li><var>[[$Web_Num_IsIndex]]</var>
</ul>


<li>[[<var>$Web_IsIndex_Parm_Len]]</var>
<li>[[<var>$Web_IsIndex_Parm]]</var>
<li>[[<var>$Web_Num_IsIndex]]</var>
</ul>
For a discussion of isindex requests and data see .


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

Latest revision as of 22:21, 5 June 2013

Name of isindex field

$Web_IsIndex_Name retrieves the name of an isindex field in a URL.

Since isindex fields are more commonly called "URL parameters," you may want to use this $function's synonym, $Web_URL_Parm_Name.

$Web_IsIndex_Name takes a single argument and returns a string or null if the number references a non-existing field.

The only parameter is the number of the isindex field for which the name is being requested. This parameter must be specified.

Syntax

%rc = $Web_IsIndex_Name( field_number )

Usage notes

  • $Web_IsIndex_Name is useful when writing generic server applications, when the server does not know what field name exists at a particular location in an isindex request.

    * Get the number of isindex fields. %X = $Web_Num_IsIndex * Load the field names into an array. FOR %Y FROM 1 TO %X %FIELD(%Y) = $Web_IsIndex_Name(%Y) END FOR

  • For a discussion of isindex requests and data see "URL parameters or isindex data".

See also