$Lstr Len: Difference between revisions
m (1 revision) |
m (1 revision) |
||
Line 16: | Line 16: | ||
</p> | </p> | ||
<p class="caption">%LEN is the length of ''longstring''</p> | <p class="caption">%LEN is the length of ''longstring''</p> | ||
$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. | <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. | ||
$Lstr_Len is only available in <var class="product">[[Sirius Mods]]</var> Version 6.2 and later.<p> | <var>$Lstr_Len</var> is only available in <var class="product">[[Sirius Mods]]</var> Version 6.2 and later.<p> | ||
<ul class="smallAndTightList"> | <ul class="smallAndTightList"> |
Revision as of 23:44, 18 October 2012
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 (String 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
<section begin="syntax" /> %LEN = $Lstr_Len(longstring) <section end="syntax" />
$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.
$Lstr_Len is only available in Sirius Mods Version 6.2 and later.