MaxItemLength (Stringlist property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (minor cleanup)
 
(35 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Template:Stringlist:MaxItemLength subtitle}}
{{Template:Stringlist:MaxItemLength subtitle}}


Under ''[[Sirius Mods]]'' Version 6.5, this method returns the maximum Stringlist item length. Under ''[[Sirius Mods]]'' Version 6.6, this method returns the part of a Stringlist item that is on the first CCATEMP page of the item. While items can be considerably longer than this (up to 2**31-1 bytes), this limit still affects some methods. For example, the [[Locate (Stringlist function)]] and [[LocateUp (Stringlist function)]] will not search beyond the MaxItemLength column in a Stringlist item.
This method returns the maximum length of the part of a <var>Stringlist</var> item that is on the first CCATEMP page of the item. While items can be considerably longer than this (up to 2**31-1 bytes), this limit still affects some methods. For example, the <var>[[Locate and LocateUp (Stringlist functions)|Locate]]</var> and <var>[[Locate and LocateUp (Stringlist functions)|LocateUp]]</var> functions do not search beyond the <var>MaxItemLength</var> column in a <var>Stringlist</var> item.
 
MaxItemLength accepts no arguments, and it returns the maximum length of a Stringlist item (currently 6124) or the part of a Stringlist item that is on the first CCATEMP page of the item.
 
MaxItemLength is a member of the [[Stringlist class]].


==Syntax==
==Syntax==
{{Template:Stringlist:MaxItemLength syntax}}
{{Template:Stringlist:MaxItemLength syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table>
<dt>%max
<tr><th>%max</th>
<dd>A numeric variable set to the maximum length of a Stringlist item.
<td>A numeric variable to contain the maximum length (currently 6124) of that  part of a <var>Stringlist</var> item that is on the first CCATEMP page of the item.</td></tr>
<dt>%(Stringlist
 
<dd>The class name in parentheses denotes a shared method. MaxItemLength can also be invoked via a Stringlist object variable, which may be null.  
<tr><th><var class="nobr">%(Stringlist)</var></th>
</dl>
<td>The class name in parentheses denotes a [[Notation conventions for methods#Shared methods|shared]] method. <var>MaxItemLength</var> can also be invoked via a <var>Stringlist</var> object variable, which may be null.</td></tr>
</table>


==Usage notes==
==Usage notes==
<ul>
<ul>
<li>MaxItemLength's chief purpose is to avoid having code with a constant (like 6124) whose value is subject to change. Under ''[[Sirius Mods]]'' Version 6.5, 6124 was the maximum length of a Stringlist item. Under ''[[Sirius Mods]]'' Version 6.6 and later, some methods such as Locate and LocateUp still only operate on the first 6124 bytes of Stringlist items. While Sirius Software is not likely to reduce this value, because of the complex backward compatibility issues, it might someday increase it, as it eliminated the Stringlist item length limit in ''[[Sirius Mods]]'' 6.6.
<li><var>MaxItemLength's</var> chief purpose is to avoid having code with a constant (like 6124) whose value is subject to change. Formerly, 6124 was the maximum length of a <var>Stringlist</var> item. Some methods, such as <var>Locate</var> and <var>LocateUp</var>, still only operate on the first 6124 bytes of <var>Stringlist</var> items. While Rocket Software is not likely to reduce this value, because of the complex backward compatibility issues, it might someday increase it.
</ul>
</ul>


[[Category:Stringlist methods|MaxItemLength property]]
==See also==
{{Template:Stringlist:MaxItemLength footer}}

Latest revision as of 15:57, 15 April 2016

Maximum Stringlist item length (Stringlist class)


This method returns the maximum length of the part of a Stringlist item that is on the first CCATEMP page of the item. While items can be considerably longer than this (up to 2**31-1 bytes), this limit still affects some methods. For example, the Locate and LocateUp functions do not search beyond the MaxItemLength column in a Stringlist item.

Syntax

%max = %(Stringlist):MaxItemLength

Syntax terms

%max A numeric variable to contain the maximum length (currently 6124) of that part of a Stringlist item that is on the first CCATEMP page of the item.
%(Stringlist) The class name in parentheses denotes a shared method. MaxItemLength can also be invoked via a Stringlist object variable, which may be null.

Usage notes

  • MaxItemLength's chief purpose is to avoid having code with a constant (like 6124) whose value is subject to change. Formerly, 6124 was the maximum length of a Stringlist item. Some methods, such as Locate and LocateUp, still only operate on the first 6124 bytes of Stringlist items. While Rocket Software is not likely to reduce this value, because of the complex backward compatibility issues, it might someday increase it.

See also