NEW INSTANCE

From STX Wiki
Jump to navigationJump to search
Instance Item
NEW SET 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 constructor 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