devxlogo

Searching PBD for User Object at Runtime

Searching PBD for User Object at Runtime

Question:
I am currently writing a generic system where user object names are stored in a database and instantiated upon request.

This is currently working beautifully, but I fall short when attempting to load a user object that does not exist in the PBDs listed in the application’s library list.

What I want to do is search for the object in the PBD list before attempting to instantiate it.

The LibraryDirectory function appears only to work with PBL files.

What can I do to remedy this?

Answer:
In PowerBuilder 6 and 7, Sybase has added an API called the Class Definition Objects. You can use these to find objects and load them into special classes so you can examine the properties and methods in your PowerScript.

See also  5 Benefits of Using Time Tracking Software
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist