LibraryDirectory function

Description

The LibraryDirectory PowerScript function is unsupported.

Workaround

The LibraryDirectory function is used to get a list of all objects or just objects of a specified type in a PowerBuilder library.

Case #1

If the LibraryDirectory function is used in other unsupported Library functions, there is no workaround available. Comment out the script related to the Library functions and the relevant functionality will be lost.

Case #2

If the LibraryDirectory function is used to get the list of all objects in the PowerBuilder Library and check whether a particular object exists, the workaround steps are:

Step 1: Create a table in the database to store the object names of the PowerBuilder library that is passed to the LibraryDirectory function.

Step 2: Use a SQL statement to check whether a particular object exists in the table.