$List MaxIL: Difference between revisions
m (1 revision) |
mNo edit summary |
||
Line 2: | Line 2: | ||
<span class="pageSubtitle"><section begin="desc" />Return maximum $list item length<section end="desc" /></span> | <span class="pageSubtitle"><section begin="desc" />Return maximum $list item length<section end="desc" /></span> | ||
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $List_MaxIL function is [[ | <p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $List_MaxIL function is the [[MaxItemLength (Stringlist property)]].</p> | ||
This function returns the maximum $list item length. | This function returns the maximum $list item length. | ||
$List_MaxIL accepts no arguments and returns the maximum length of a $list item. | $List_MaxIL accepts no arguments and returns the maximum length of a $list item. | ||
==Syntax== | ==Syntax== | ||
<p class="syntax"><section begin="syntax" /> %MAX = $List_MaxIL | <p class="syntax"><section begin="syntax" /> %MAX = $List_MaxIL | ||
Line 13: | Line 14: | ||
</p> | </p> | ||
<p class="caption">%MAX: Maximum length of a $list item.</p> | <p class="caption">%MAX: Maximum length of a $list item.</p> | ||
The chief purpose of $List_MaxIL 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 $list item. Under ''[[Sirius Mods]]'' Version 6.6 and later, some functions such as $ListLoc and $ListLup still only operate on the first 6124 bytes of $list 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 $list item length limit in ''[[Sirius Mods]]'' 6.6. | The chief purpose of $List_MaxIL 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 $list item. Under ''[[Sirius Mods]]'' Version 6.6 and later, some functions such as $ListLoc and $ListLup still only operate on the first 6124 bytes of $list 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 $list item length limit in ''[[Sirius Mods]]'' 6.6. |
Revision as of 20:10, 10 February 2011
<section begin="desc" />Return maximum $list item length<section end="desc" />
Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $List_MaxIL function is the MaxItemLength (Stringlist property).
This function returns the maximum $list item length.
$List_MaxIL accepts no arguments and returns the maximum length of a $list item.
Syntax
<section begin="syntax" /> %MAX = $List_MaxIL <section end="syntax" />
The chief purpose of $List_MaxIL 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 $list item. Under Sirius Mods Version 6.6 and later, some functions such as $ListLoc and $ListLup still only operate on the first 6124 bytes of $list 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 $list item length limit in Sirius Mods 6.6.
This $function is new in Sirius Mods Version 6.2 and later.