New (NamedArraylist constructor)

From m204wiki
Revision as of 19:17, 6 August 2012 by Dme (talk | contribs)
Jump to navigation Jump to search

Create a new NamedArraylist object (NamedArraylist class)


This method returns a new instance of a NamedArraylist object.

Syntax

%nal = [%(NamedArraylist Of itemType):]New

Syntax Terms

%nal A NamedArraylist object variable that is set to a new NamedArraylist object reference.
[%(NamedArraylist Of itemType):] The optional class name in parentheses denotes a Constructor. See "Usage notes," below, for more information about invoking a collection Constructor.

Usage Notes

  • As described in "Using New or other Constructors", New can be invoked with no object, with an explicit class specification, or with an object variable, even if that object is Null:

    %nal = new %nal = %(namedArraylist of longstring):new %nal = %nal:new

    Note: As shown above, when explicitly indicating the class, both the collection and the item datatype must be specified just as they are on the collection variable's declaration:

    %nall is namedArraylist of object customer %nall = %(namedArraylist of object customer):new