New (Screen constructor): Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{Template:Screen:New subtitle}} | |||
This shared function instantiates a Screen object. | This shared function instantiates a Screen object. | ||
Line 15: | Line 17: | ||
%scr = %(screen):new | %scr = %(screen):new | ||
%scr = %scr:new | %scr = %scr:new | ||
==See also== | |||
{{Template:Screen:New footer}} |
Revision as of 16:58, 16 February 2011
Create new Screen instance (Screen class)
This shared function instantiates a Screen object.
%screen = New
- New syntax
- %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