New (HttpRequest constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 13: Line 13:
==Usage notes==
==Usage notes==
<ul>
<ul>
<li><var>New</var> can be called with no object, with an explicit class name, or with an object variable, even if that object is <var>Null</var>:<p class="code">%httpRequest = new
<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 name, or with an object variable in the class, even if that object is <var>Null</var>:<p class="code">%httpRequest = new


%httpRequest = %(httpRequest):new
%httpRequest = %(httpRequest):new

Revision as of 18:51, 27 July 2011

Create a new HttpRequest object (HttpRequest class)

The HttpRequest constructor (run automatically when New is issued) takes no arguments and sets the request object default values. For more information about HttpRequest object defaults, see the individual method descriptions.

Syntax

%httpRequest = [%(HttpRequest):]New

Syntax terms

%httpRequestA declared HttpRequest object to contain the new HttpRequest object instance.
%(HttpRequest) The optional class name in parentheses denotes a Constructor. New can also be invoked via an HttpRequest object variable, which may be Null.

Usage notes

  • As described in "Using New or other Constructors", New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:

    %httpRequest = new %httpRequest = %(httpRequest):new %httpRequest = %httpRequest:new

See also