New (FloatNamedArraylist constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 17: Line 17:
<p class="code">%fltNal = new
<p class="code">%fltNal = new


%fltNal = %(FloatNamedArraylist of longstring):new
%fltNal = %(floatNamedArraylist of longstring):new


%fltNal = %fltNal:new
%fltNal = %fltNal:new

Latest revision as of 19:29, 6 August 2012

Create a new FloatNamedArraylist object (FloatNamedArraylist class)


This method returns a new instance of a FloatNamedArraylist object.

Syntax

%fltNal = [%(FloatNamedArraylist Of itemType):]New

Syntax Terms

%fltNal A FloatNamedArraylist object variable that is set to a new FloatNamedArraylist object reference.
[%(FloatNamedArraylist 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:

    %fltNal = new %fltNal = %(floatNamedArraylist of longstring):new %fltNal = %fltNal: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:

    %fltrayl is floatNamedArraylist of longstring %fltrayl = %(floatNamedArraylist of longstring):new