Creating and opening workspaces

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

Creating a workspace

To create a new workspace

  1. Do one of the following:

    • Click the New button in the PowerBar.

    • Select File>New from the menu bar.

    • In the Workspace tab of the System Tree, right-click the workspace name and select New from the pop-up menu.

    The New dialog box opens.

  2. On the Workspace tab, select Workspace.

    The New Workspace dialog box displays.

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

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

Opening a workspace

The next time you start PowerBuilder, it opens without opening a workspace. You can change this behavior by modifying options on the Workspaces 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 you used most recently, but also the objects and scripts you worked on last. See Starting PowerBuilder with an open workspace.

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

To change workspaces

  1. Do one of the following:

    • Select File>Open Workspace from the menu bar.

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

    The Open Workspace dialog box displays.

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

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

To change the workspace to a recent workspace

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

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