$Lstr: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
(Automatically generated page update) |
||
Line 36: | Line 36: | ||
<li>[[Janus Sockets]]</li> | <li>[[Janus Sockets]]</li> | ||
<li>[[Janus Web Server]]</li> | <li>[[Janus Web Server]]</li> | ||
<li> | <li>Japanese functions</li> | ||
<li>[http://m204wiki.rocketsoftware.com/images/4/4b/SirfieldNew.pdf Sir2000 Field Migration Facility]</li> | <li>[http://m204wiki.rocketsoftware.com/images/4/4b/SirfieldNew.pdf Sir2000 Field Migration Facility]</li> | ||
</ul> | </ul> |
Revision as of 16:03, 8 July 2014
Treat a string as longstring
Note: 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')