Specifying the target’s library search path
The objects you create in painters are stored in PowerBuilder libraries.
You can use objects from one library or multiple libraries in a
PowerScript target. You define each library the target uses in the
library search path.
PowerBuilder uses the search path to find referenced objects
during execution. When a new object is referenced, PowerBuilder looks
through the libraries in the order in which they are specified in
the library search path until it finds the object.
On the Library List tab page of the Target Properties dialog
box, you can modify the libraries associated with the current target.
To specify the target’s library search
path:
-
In the Workspace tab of the System Tree,
right-click on the target containing your application and select
Properties from the popup menu. The Target Properties dialog box
displays. -
Select the Library List tab page.
The libraries currently included in the library search path
are displayed in the listbox. -
Enter the name of each library you want to include
in the Library Search Path listbox, separating them with semicolons.or
Use the Browse button to include other libraries in
your search path.You must specify libraries using an absolute path. To change
the order of libraries in the search path, use the popup menu to
copy, cut, and paste libraries.
Make sure the order is correct When you select multiple libraries from the Select Library
dialog box using shift+click or control+click,
the first library you select appears last in the Library Search
Path listbox and will be the last library searched.To delete a library from the search path, select the library
in the listbox and use the popup menu or press delete. -
Click OK.
PowerBuilder updates the search path for the target.
Where PowerBuilder maintains the library search path PowerBuilder stores your target’s library search path
in the target (.pbt) file in a line beginning with LibList; for
example:
|
1 |
LibList "pbtutor.pbl;tutor_pb.pbl"; |