Although you can have only one workspace/solution open at a time, you can add as many targets/projects to the workspace/solution as you want and open and edit objects in multiple targets/projects.
Working with targets that share PBLs
If a target shares PBLs with another target in the same workspace, you should work on only one target at a time. Objects are always opened in the context of a specific target. When you open an object in a PBL that is used in multiple targets, PowerBuilder needs to set global properties for the specific target you are working on.
To add an existing target/project to a workspace/solution
-
Right-click on the workspace/solution displayed in the System Tree and select Add Target or Add Project from the pop-up menu.
The Add Target to Workspace or Add Project to Solution dialog box displays.
-
Navigate to the directory containing the target/project you want to add and select the target/project file.
-
Click Open.
The target/project is added to your current workspace/solution.
You can also import individual target file (.pbt) from a workspace to an existing solution, or import individual library file (.pbl) to the project (.pbproj), or import objects from the library file (.pbl) to the library folder.
To import the target (.pbt) files to the solution
-
Right-click the solution and then select Convert & Add Target.
-
Navigate to the directory containing the target you want to add and select the target file.
-
Click Open.
The selected target (.pbt) file will be converted to the project (.pbproj) and the library (.pbl) files included in the selected target will be converted to the corresponding library folders.
If the library (.pbl) file is located under the directory or subdirectory of the selected target (.pbt) file, the original target file and library file will be backed up to the "_BackupFiles" sub-folder under the original location.
If the library (.pbl) file is located outside the directory of the selected target (.pbt) file, the original target file will be backed up to the "_BackupFiles" sub-folder under its original location while the library file will be backed up with a .bak suffix in its original location.
To import the library (.pbl) files to the project (.pbproj)
-
Right-click the project (.pbproj) and then select Library List, and in the dialog box select Convert & Add, or right-click the project (.pbproj) and then select Properties, and in the dialog box select Convert & Add.
-
Navigate to the directory containing the PBL file you want to add and select the PBL file.
-
Click Open.
The selected library (.pbl) file will be converted to the library folder. The library (.pbl) file will be backed up with a .bak suffix in its original location.
You can also use Convert & Add to add the PB dynamic library (.pbd) to the library list and reference the PBD file in the application.
To import objects from the library (.pbl) file to the library folder
-
Right-click the library folder and then select Import From Library.
-
Navigate and select the PBL file where you want to import objects.
-
Click Open.
The objects will be imported from the selected library file (.pbl) to the current library folder. The library (.pbl) file remains unchanged in its original location.


