$Lstr Len: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
mNo edit summary
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="warning">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>


This function takes a string or longstring input and produces a numeric output that is the length of the input string or longstring.  
This function takes a string or longstring input and produces a numeric output that is the length of the input string or longstring.  
Line 11: Line 11:


==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>
</p>
<var class="term">%len</var> is the length of ''longstring''</p>
<p>%LEN is the length of ''longstring''</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>$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> will cause request cancellation for an input [[Longstrings|Longstring]] of length greater than 255 bytes.


==Products authorizing {{PAGENAMEE}}==  
==Products authorizing {{PAGENAMEE}}==  
Line 30: Line 30:
<li>[[Japanese functions]]</li>
<li>[[Japanese functions]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
</ul>
</ul>
   
   
</p>
<p>
</p>
[[Category:$Functions|$Lstr_Len]]
[[Category:$Functions|$Lstr_Len]]

Revision as of 23:44, 15 April 2013

Length of a longstring

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

This function takes a string or longstring input and produces a numeric output that is the length of the input string or longstring.

The $Lstr_Len 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

%len = $Lstr_Len(longstring)

%len is the length of longstring

Usage notes

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

Products authorizing $Lstr_Len