New (Screen constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (edits, tags and links)
m (unvar)
Line 6: Line 6:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th><var>%screen</var></th>
<tr><th>%screen</th>
<td>A declared <var>Screen</var> object variable.</td></tr>
<td>A declared <var>Screen</var> object variable.</td></tr>
</table>
</table>

Revision as of 10:28, 28 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