Building a custom class user object
On the PB Object tab page of the New dialog box, if you select
Custom Class and click OK, the User Object painter for custom class
user objects opens.
To build the custom class user object
-
Declare functions, structures, or variables you need for the
user object. -
Create and compile scripts for the user object.
Custom class user objects have built-in constructor and
destructor events. -
Save the user object.
See Saving a user
object.
Using
AutoInstantiate
You can create custom class user objects that are
autoinstantiated, which provides you with the ability to define
methods.
Autoinstantiated user objects do not require explicit CREATE or
DESTROY statements when you use them. They are instantiated when you
call them in a script and destroyed automatically.
To define an autoinstantiated custom class user
object
-
In the Properties view, select the AutoInstantiate check
box.For more information about autoinstantiation, see the section called “Assignment for autoinstantiated user objects” in PowerScript Reference.