$Lstr: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
m (→Usage notes) |
||
Line 18: | Line 18: | ||
<ul> | <ul> | ||
<li>The main utility of the <var>$Lstr</var> function is to force a STRING WITH expression that is its argument to be upgraded to a LONGSTRING WITH expression. | <li>The main utility of the <var>$Lstr</var> function is to force a STRING WITH expression that is its argument to be upgraded to a LONGSTRING WITH expression. | ||
</ul> | |||
==Example== | |||
For example, | For example, | ||
<p class="code">IF %COMEDIANS EQ (%WHO WITH ' Costello') | <p class="code">IF %COMEDIANS EQ (%WHO WITH ' Costello') | ||
Line 24: | Line 27: | ||
However, this statement does not: | However, this statement does not: | ||
<p class="code">IF %COMEDIANS EQ $Lstr(%WHO WITH ' Costello')</p> | <p class="code">IF %COMEDIANS EQ $Lstr(%WHO WITH ' Costello')</p> | ||
==Products authorizing {{PAGENAMEE}}== | ==Products authorizing {{PAGENAMEE}}== |
Revision as of 23:28, 15 April 2013
Treat a string as longstring
Most Sirius $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')