Advanced PowerBuilder

HomePrevious Lesson: Time Related Existence
Next Lesson: PARENT and THIS Pronouns

Placing Non-Visual User Objects

Till version 7.0, you can't place a class user object (Non-Visual user object) on the surface of a window. What you can do is, declare a variable and create an instance of the class and access that instance. For example, if you have a custom class cc_1, and want to call uf_close(), the typical code would be:
cc_1 l_nvo_1
l_nvo_1 = CREATE cc_1
l_nvo_1.uf_Close()

Whenever you are finished with the class, you can destroy it:
DESTROY l_nvo_1

However, with version 7.0, you can place them like any other visual object. To write a script for those classes that are placed on the window, select 'View > Non-Visual Objects List' menu option and select the class, display the popup menu and select Script menu option.
HomePrevious Lesson: Time Related Existence
Next Lesson: PARENT and THIS Pronouns