New (GenericNamedArraylist constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "{{Template:GenericNamedArraylist:New subtitle}} ==Syntax== %namrayl = New ===Syntax Terms=== <dl> <dt><i>%namrayl</i> <dd>A NamedArraylist object that is set to a new NamedAr...")
 
m (Created page with "{{Template:GenericNamedArraylist:New subtitle}} ==Syntax== %namrayl = New ===Syntax Terms=== <dl> <dt><i>%namrayl</i> <dd>A NamedArraylist object that is set to a new NamedAr...")
Line 2: Line 2:


==Syntax==
==Syntax==
  %namrayl = New
{{Template:GenericNamedArraylist:New syntax}}
===Syntax Terms===
===Syntax terms===
<dl>
<dl>
<dt><i>%namrayl</i>
<dt><i>%namrayl</i>
Line 9: Line 9:


</dl>
</dl>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>New is a constructor and as such can be called with no
<li>New is a constructor and as such can be called with no
Line 28: Line 28:
</pre>
</pre>
</ul>
</ul>
[[Category:NamedArraylist methods|New constructor]]
==See also==
{{Template:GenericNamedArraylist:New footer}}

Revision as of 23:07, 26 July 2011

Create a new GenericNamedArraylist object (FloatNamedArraylist, NamedArraylist, and UnicodeNamedArraylist classes)


Syntax

%anyNal = [%(GenericNamedArraylist Of itemType):]New

Syntax terms

%namrayl
A NamedArraylist object that is set to a new NamedArraylist object reference.

Usage notes

  • New is a constructor and as such can be called with no object, with an explicit class name, or with an object variable, even if that object is null:
        %namrayl = new
        %namrayl = %(namedArraylist):new
        %namrayl = %namrayl: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:

        %namrayl  is collection NamedArraylist of longstring
        %namrayl  = %(NamedArraylist of longstring):new
    

See also