Default (GenericNamedArraylist property)

From m204wiki
Revision as of 08:06, 2 March 2011 by Goff (talk | contribs) (match syntax table to diagram, couple of tags, lots of edits)
Jump to navigation Jump to search

Value for Item to return when Name has no value (FloatNamedArraylist, NamedArraylist, and UnicodeNamedArraylist classes)


The Default ReadWrite property indicates the value to be returned if a requested item name is not in the method FloatNamedArraylist / NamedArraylist / UnicodeNamedArraylist and the UseDefault property is set to True.

Syntax

%currentItem = anyNal:Default anyNal:Default = newItem

Syntax terms

%currentItem A value that matches the array list item type, or one that can be converted to that type; that will receive the current default.
anyNal A array list object.
newItem A new value that matches the array list item type, or one that can be converted to that type; that will become the new default.

Usage notes

  • The initial value of the Default property varies with the array list item type:
    Item typeValue
    Float and Fixed0
    String, Longstring, and Unicodenull string
    objectnull reference

See also