Building a custom class user object – PB Docs 2017

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

  1. Declare functions, structures, or variables you need for the
    user object.

  2. Create and compile scripts for the user object.

    Custom class user objects have built-in constructor and
    destructor events.

  3. 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


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x