NEW INSTANCE

From STX Wiki
< Programmer Guide‎ | Shell Items‎ | Instance
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

NEW INSTANCE

See SET INSTANCE for the SET commands and INSTANCE Item Attributes for a list of attributes.

NEW INSTANCE name classname [/Auto arguments] [ /G ]

Create an instance item of the loaded class classname. Only the instance environment is created and connected to the class (members), no constructer is called. Use the base class function COBJ NEW class [args] instead, if your class uses standard construction/destruction methods.

name
The name to give the instance.
classname
The type of class to instantiate.
arguments
A list of arguments to pass to the constructor. Only applicable if the option /Auto is used.
/Auto
Use the /A option to pass a list of arguments to the class' constructor.
/G
Garbage collection. If specified, the item is automatically deleted when exiting the macro.

Navigation menu

Personal tools