New (GenericNamedArraylist constructor): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (1 revision) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
<tr><th>%anyNal</th> | <tr><th>%anyNal</th> | ||
<td>A <var>NamedArraylist</var>, <var>FloatNamedArraylist</var>, or <var>UnicodeNamedArraylist</var> object variable that is set, respectively, to a new <var>NamedArraylist</var>, <var>FloatNamedArraylist</var>, or <var>UnicodeNamedArraylist</var> object reference.</td></tr> | <td>A <var>NamedArraylist</var>, <var>FloatNamedArraylist</var>, or <var>UnicodeNamedArraylist</var> object variable that is set, respectively, to a new <var>NamedArraylist</var>, <var>FloatNamedArraylist</var>, or <var>UnicodeNamedArraylist</var> object reference.</td></tr> | ||
<tr><th nowrap="true"><var>[%(GenericNamedArraylist Of < | <tr><th nowrap="true"><var>[%(GenericNamedArraylist 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> | <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> | </table> |
Latest revision as of 20:24, 30 November 2011
Create a new GenericNamedArraylist object (FloatNamedArraylist, NamedArraylist, and UnicodeNamedArraylist classes)
This method returns a new instance of a FloatNamedArraylist, NamedArraylist, or UnicodeNamedArraylist object.
Syntax
%anyNal = [%(GenericNamedArraylist Of itemType):]New
Syntax terms
%anyNal | A NamedArraylist, FloatNamedArraylist, or UnicodeNamedArraylist object variable that is set, respectively, to a new NamedArraylist, FloatNamedArraylist, or UnicodeNamedArraylist object reference. |
---|---|
[%(GenericNamedArraylist 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:
%anyNal = new %anyNal = %(GenericNamedArraylist of float):new %anyNal = %anyNal: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:
%namrayl is collection NamedArraylist of longstring %namrayl = %(NamedArraylist of longstring):new