Creating and opening workspaces/solutions

Before you can begin any development in PowerBuilder, you need to create or open a workspace/solution.

Creating a workspace/solution

To create a new workspace/solution

  1. Do one of the following:

    • Click the New button in the PowerBar.

    • Select File>New from the menu bar.

    • In the System Tree, right-click the workspace/solution name and select New from the pop-up menu.

    The New dialog box opens.

  2. On the Workspace/Solution tab, select Workspace or Solution.

    The New Workspace or New Solution dialog box displays.

  3. Enter a name for the workspace (.pbw) or solution (.pbsln) you want to create and click Save.

    The workspace/solution is created and the name of the new workspace/solution displays in the PowerBuilder title bar.

Opening a workspace/solution

The next time you start PowerBuilder, it opens without opening a workspace/solution. You can change this behavior by modifying options on the Workspaces/Solutions page of the System Options dialog box or on the Welcome to PowerBuilder screen. For example, you can have PowerBuilder open not only the workspace/solution you used most recently, but also the objects and scripts you worked on last. See Starting PowerBuilder with an open workspace/solution.

When PowerBuilder opens with an open workspace/solution, it displays the name of the current workspace/solution in the title bar. The current workspace/solution is also displayed in the Workspace/Solution tab page in the System Tree. Although you can create multiple workspaces/solutions, you can have only one workspace/solution open at a time. You can change workspaces/solutions at any time.

To change workspaces/solutions

  1. Do one of the following:

    • Select File>Open Workspace/Solution from the menu bar.

    • In the System Tree, right-click on the workspace/solution name and select Open Workspace/Solution from the pop-up menu.

    The Open Workspace/Solution dialog box displays.

  2. From the list, select the workspace/solution you want to open.

    The workspace/solution is changed and the name of the new workspace/solution displays in the PowerBuilder title bar.

To change the workspace/solution to a recent workspace/solution

  1. Select File>Recent Workspaces/Solutions from the menu bar and select the workspace/solution.

  2. The workspace/solution list includes the eight most recently accessed workspaces/solutions. You can include up to 36 workspaces/solutions on the list by selecting Tools>System Options and modifying the number of items.