MaxItemLength (Stringlist property)

From m204wiki
Revision as of 15:57, 15 April 2016 by JAL (talk | contribs) (minor cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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