pb源代码执行器:http://www.ispirer.com/download/download-powerbuilder-source-extractor
Extracting Source from PBL Files Using Tool
-
Run PowerBuilder.
-
Create workspace with any name(on the picture below, workspace with the name “new”).
-
Create target with name “extrlib”. PBT and library files will be created automatically with the same name.
-
Import all downloaded files, except sra file, into created target.
-
Open extrlib file with menu option “Edit Source”. Replace content of the opened file with content of the downloaded file, except first row.
-
Make Full Build.
Using PBExtractor
-
Run PBExtractor
-
Specify path to PBT file in first text box “Path to PBT file :”. Should be specified existing pbt file.
-
Specify folder where extracted files should be placed in second text box “Folder for extracted files :”. Path should ended with “\” and should be specified existing directory.
-
(Optional) Specify encoding that you want. By default used UTF8.
-
Press button “Extract…”
Extracting Source from PBL Files Manually
For this purpose please go to the “Tools” menu and run the “Library Painter” as it is specified in the screen-shot below:
In the opened “Library Painter” window please browse to one of the pbl files from your PowerBuilder project, select all the objects in the left-hand pane, click the right mouse button on the selected objects and choose “Export” in the menu, like in the picture below:
After that you will be prompted to specify the location of each object exported, which definition will be stored in its own file (SRD, SRU, SRW, SRF & etc.) in the specified location.
The same set of actions needed to be performed for each PBL file in the project to acquire the definitions of all the objects in the project.