$Lstr Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (misc formatting)
 
(30 intermediate revisions by 5 users not shown)
Line 2: Line 2:
<span class="pageSubtitle">Length of a longstring</span>
<span class="pageSubtitle">Length of a longstring</span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Lstr_Len function is the [[Length (String function)]].</p>
<p class="warn"><b>Note:</b> Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the <var>$Lstr_Len</var> function is the <var>[[Length (String function)|Length]]</var> function.</p>


This function takes a string or longstring input and produces a numeric output that is the length of the input string or longstring.
<var>$Lstr_Len</var> takes a <var>String</var> or <var>[[Longstrings|Longstring]]</var> input, and it produces a numeric output that is the length of the input <var>String</var> or <var>Longstring</var>.  
 
The <var>$Lstr_Len</var> function accepts one argument and returns a numeric result that is the length of the first argument.  
 
The first argument is an arbitrary string or longstring


==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %LEN = $Lstr_Len(longstring)
<p class="syntax"><span class="term">%len</span> = <span class="literal">$Lstr_Len</span>(<span class="term">longstring</span>)
<section end="syntax" /></p>
<p class="caption">$Lstr_Len Function
</p>
</p>
<p class="caption">%LEN is the length of ''longstring''</p>
<p>
<var>$Lstr_Len</var> can be used wherever $LEN is used but $LEN will cause request cancellation for an input LONGSTRING of length greater than 255 bytes.  
<var class="term">%len</var> is the length of <var class="term">longstring</var>. </p>
<p>
<var class="term">longstring</var> is an arbitrary <var>String</var> or <var>Longstring</var>. </p>


<var>$Lstr_Len</var> is only available in <var class="product">[[Sirius Mods]]</var> Version 6.2 and later.<p>
==Usage notes==
<var>$Lstr_Len</var> can be used wherever <var>[[$Len]]</var> is used, but <var>$Len</var> causes request cancellation for an input <var>Longstring</var> of length greater than 255 bytes.


==Products authorizing {{PAGENAMEE}}==
<ul class="smallAndTightList">
<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>
<li>[[Janus Open Client]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
<li>[[Janus Open Server]]</li>
<li>[[Media:JosrvrNew.pdf|Janus Open Server]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Japanese functions]]</li>
<li>Japanese functions</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li>
 
</ul>
</ul>
   
   
</p>
<p class="caption">Products authorizing $Lstr_Len
</p>
[[Category:$Functions|$Lstr_Len]]
[[Category:$Functions|$Lstr_Len]]

Latest revision as of 20:07, 26 June 2018

Length of a longstring

Note: Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Lstr_Len function is the Length function.

$Lstr_Len takes a String or Longstring input, and it produces a numeric output that is the length of the input String or Longstring.

Syntax

%len = $Lstr_Len(longstring)

%len is the length of longstring.

longstring is an arbitrary String or Longstring.

Usage notes

$Lstr_Len can be used wherever $Len is used, but $Len causes request cancellation for an input Longstring of length greater than 255 bytes.

Products authorizing $Lstr_Len