New (NamedArraylist constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
Line 1: Line 1:
{{Template:NamedArraylist:New subtitle}}
#REDIRECT [[New (GenericNamedArraylist constructor)]]
 
This method returns a new instance of a <var>NamedArraylist</var> object.
 
==Syntax==
{{Template:NamedArraylist:New syntax}}
===Syntax Terms===
<table class="syntaxTable">
<tr><th>%nal</th>
<td>A <var>NamedArraylist</var> object variable that is set to a new <var>NamedArraylist</var> object reference.</td></tr>
<tr><th nowrap="true"><var>[%(NamedArraylist Of </var>itemType<var>):]</var></th>
<td>The optional class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See "Usage notes," below, for more information about invoking a collection <var>Constructor</var>.</td></tr>
</table>
==Usage Notes==
<ul>
<li>As described in [[Object variables#Using New or other Constructors|"Using New or other Constructors"]], <var>New</var> can be invoked with no object, with an explicit class specification, or with an object variable, even if that object is <var>Null</var>:
<p class="code">%nal = new
 
%nal = %(namedArraylist of longstring):new
 
%nal = %nal:new
</p>
'''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:
<p class="code">%nall  is namedArraylist of object customer
%nall  = %(namedArraylist of object customer):new
</p></ul>

Latest revision as of 20:01, 1 November 2012