New (UnicodeNamedArraylist constructor)

From m204wiki
Revision as of 19:57, 5 January 2011 by Admin (talk | contribs) (1 revision)
Jump to navigation Jump to search

<section begin=dpl_desc/>Create new UnicodeNamedArraylist instance<section end=dpl_desc/>

New is a member of the UnicodeNamedArraylist class.

This method returns a new instance of a UnicodeNamedArraylist.

Syntax

  %unamrayl = New

Syntax Terms

%unamrayl
A UnicodeNamedArraylist object that is set to a new UnicodeNamedArraylist object reference.

Usage Notes

  • New is a constructor and therefore can be called with no object, with an explicit class name, or with an object variable, even if that object is null:
        %unamrayl = new
        %unamrayl = %(unicodeNamedArraylist):new
        %unamrayl = %unamrayl:new
    
    note

    When using the second of these syntax options of New, which explicitly indicates the class, both the collection and item datatypes must be specified just as they are on the collection variable's declaration:

        %unamrayl  collection UnicodeNamedArraylist of longstring
        %unamrayl = %(UnicodeNamedArraylist of longstring):new