New (Screen constructor): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
This shared function instantiates a Screen object. | This shared function instantiates a Screen object. | ||
==Syntax== | ==Syntax== | ||
{{Template:Screen:New syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<dl> | <dl> | ||
Line 8: | Line 9: | ||
<dd>A declared Screen object variable. | <dd>A declared Screen object variable. | ||
</dl> | </dl> | ||
==Usage | ==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: | 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: |
Revision as of 19:38, 18 March 2011
Create new Screen instance (Screen class)
This 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