$Lstr: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 27: | Line 27: | ||
==Products authorizing {{PAGENAMEE}}== | |||
<ul class="smallAndTightList"> | |||
<li>[[Sirius functions]]</li> | <li>[[Sirius functions]]</li> | ||
<li>[[Fast/Unload User Language Interface]]</li> | <li>[[Fast/Unload User Language Interface]]</li> |
Revision as of 21:32, 7 November 2012
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
<section begin="syntax" />%longstr = $Lstr(longstring) <section end="syntax" />
%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.
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')