$Lstr Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
m (misc formatting)
 
(2 intermediate revisions by 2 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="warn"><b>Note: </b>Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Lstr_Len function is the <var>[[Length (String function)|Length]]</var> 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"><span class="term">%len</span> = <span class="literal">$Lstr_Len</span>(<span class="term">longstring</span>)
<p class="syntax"><span class="term">%len</span> = <span class="literal">$Lstr_Len</span>(<span class="term">longstring</span>)
</p>
</p>
<p>
<p>
<var class="term">%len</var> is the length of <var class="term">longstring</var></p>
<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>


==Usage notes==
==Usage notes==
<var>$Lstr_Len</var> can be used wherever <var>[[$Len]]</var> is used, but <var>$Len</var> will cause request cancellation for an input [[Longstrings|Longstring]] of length greater than 255 bytes.  
<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}}==  
==Products authorizing {{PAGENAMEE}}==  
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[List of $functions|Sirius functions]]</li>
<li>[[Sirius Functions]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
Line 29: Line 26:
<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_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