PowerBuilder includes a Code Examples application that contains many examples you can use to learn a range of coding techniques. The examples are specifically designed to show you how to use different coding techniques with both old and new PowerBuilder features. To run the application, you need to create a workspace for it.
You run the Code Examples application from the development environment. If you installed the examples when you installed PowerBuilder, they are located in the PowerBuilder 8.0\Code Examples\Example App folder.
To run the Code Examples application:
- Select File>New from the menu bar, select Workspace from the Workspace tab and click OK.
- Navigate to the PowerBuilder 8.0\Code Examples\Example App directory, type a name for your workspace, and click OK.
- Select Add Target from the popup menu for the workspace you just created, navigate to the PowerBuilder 8.0\Code Examples\Example App folder, select the PB Examples target file, and click Open.
If you expand the target, you see that the PBL that contains the application and all its supporting PBLs have been added to the workspace.
- Click the Run button on the PowerBar.