$Lstr: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
(Automatically generated page update) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<span class="pageSubtitle">Treat a string as longstring</span> | <span class="pageSubtitle">Treat a string as longstring</span> | ||
<p class="warn"><b>Note: </b> | <p class="warn"><b>Note: </b>Many $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $Lstr function.</p> | ||
This function takes a <var>String</var> or <var>Longstring</var> input and produces a <var>Longstring</var> output. | This function takes a <var>String</var> or <var>Longstring</var> input and produces a <var>Longstring</var> output. | ||
Line 37: | Line 37: | ||
<li>[[Janus Web Server]]</li> | <li>[[Janus Web Server]]</li> | ||
<li>Japanese functions</li> | <li>Japanese functions</li> | ||
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]</li> | <li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li> | ||
</ul> | </ul> | ||
[[Category:$Functions|$Lstr]] | [[Category:$Functions|$Lstr]] |
Latest revision as of 22:51, 20 September 2018
Treat a string as longstring
Note: Many $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $Lstr function.
This function takes a String or Longstring input and produces a Longstring output.
Syntax
%longstr = $Lstr(longstring)
%longstr is a copy of longstring.
The longstring argument is an arbitrary string or longstring.
Usage notes
- The main utility of the $Lstr function is to force a STRING WITH expression that is its argument to be upgraded to a LONGSTRING WITH expression.
Example
For example,
IF %COMEDIANS EQ (%WHO WITH ' Costello')
truncates %WHO WITH 'Costello'
at 255 bytes before the comparison, even if %COMEDIANS
is a LONGSTRING %variable.
However, this statement does not:
IF %COMEDIANS EQ $Lstr(%WHO WITH ' Costello')