New (Screen constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (edits, tags and links)
Line 1: Line 1:
{{Template:Screen:New subtitle}}
{{Template:Screen:New subtitle}}
Theis shared function instantiates a <var>Screen</var> object.


This shared function instantiates a Screen object.
==Syntax==
==Syntax==
{{Template:Screen:New syntax}}
{{Template:Screen:New syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%screen</th>
<tr><th><var>%screen</var></th>
<td>A declared Screen object variable.</td></tr>
<td>A declared <var>Screen</var> object variable.</td></tr>
</table>
</table>
==Usage notes==
==Usage notes==
<ul>
<li>New is a constructor and as such it can be called with no object, with an explicit class name, or with an object variable, even if that object is null:
<p class="code">  %scr = new
  %scr = %(screen):new
  %scr = %scr:new
</p></ul>


New is a constructor and as such it can be called with no object, with an explicit class name, or with an object variable, even if that object is null:
%scr = new
%scr = %(screen):new
%scr = %scr:new
==See also==
==See also==
{{Template:Screen:New footer}}
{{Template:Screen:New footer}}

Revision as of 00:11, 26 June 2011

Create new Screen instance (Screen class)

Theis shared function instantiates a Screen object.

Syntax

%screen = [%(Screen):]New

Syntax terms

%screen A declared Screen object variable.

Usage notes

  • New is a constructor and as such it can be called with no object, with an explicit class name, or with an object variable, even if that object is null:

    %scr = new %scr = %(screen):new %scr = %scr:new

See also