$Web IsIndex Parm Lstr: Difference between revisions
(Created page with "{{DISPLAYTITLE:$Web_IsIndex_Parm_Lstr}} <span class="pageSubtitle"><section begin="desc" />Value of URL parameter to longstring<section end="desc" /></span> $Web_IsIndex_Parm_Ls...") |
m (1 revision) |
(No difference)
|
Revision as of 21:38, 21 February 2011
<section begin="desc" />Value of URL parameter to longstring<section end="desc" />
$Web_IsIndex_Parm_Lstr retrieves the value of a URL parameter as a longstring.
Since isindex fields are more commonly called "URL parameters," you may want to use the synonym for this $function, $Web_URL_Parm_Lstr.
Syntax
<section begin="syntax" /> %STRING = $Web_IsIndex_Parm_Lstr( name, occurrence ) <section end="syntax" />
$Web_IsIndex_Parm_Lstr takes two arguments and returns a longstring (or null for any error condition).
name | The name of the URL parameter, returned by $Web_IsIndex_Name. This is a required argument if occurrence is not specified; otherwise it is optional. |
---|---|
occurrence | The occurrence number of a URL parameter, or the occurrence number of the URL parameter matching name, if name is specified. This is an optional argument if name is specified; otherwise it is required. |
If you have a URL that looks like:
http://myhost.edu/whatever?war=peace&love=hate
The following will retrieve the values of the War andLove fields into longstrings called %war and%love.
%war = $web_form_parm_lstr('WAR') %love = $web_form_parm_lstr('LOVE')
$Web_IsIndex_Parm_Lstr works much like $WEB_ISINDEX_PARM, except for the following:
- It can return more than 255 bytes of data into a longstring.
- It causes request cancellation if the result would be truncated, either on assignment to the target STRING %variable, or as input to a STRING $function argument or subroutine parameter.
- It does not have position and length arguments (arguments 3 and 4).
$Web_IsIndex_Parm_Lstr is only available in Sirius Mods Version 6.7 and later.
For more information about longstrings, see the Sirius Functions Reference Manual.
See also: