Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Feb 29, 2000

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date