Creating and deleting libraries

A library is created automatically when you create a new target, but you can create as many libraries as you need for your project in the Library painter.

StepsTo create a library:

  1. Click the Create button or select Entry>Library>Create from the menu bar.

    The Create Library dialog box displays showing the current directory and listing the libraries it contains.

  2. Enter the name of the library you are creating and specify the directory in which you want to store it.

    The file is given the extension .PBL.

  3. Click Save.

    The library properties dialog box displays.

  4. Enter any comments you want to associate with the library.

    Adding comments to describe the purpose of a library is important if you are working on a large project with other developers.

  5. Click OK.

    PowerBuilder creates the library.

StepsTo delete a library:

  1. In either the Tree view or the List view, select the library you want to delete.

  2. Select Entry>Delete from the menu bar or select Delete from the pop-up menu.

    The Delete Library dialog box displays showing the library you selected.

  3. Click Yes to delete the library.

    The library and all its entries are deleted from the file system.

NoteCreating and deleting libraries at runtime You can use the LibraryCreate and LibraryDelete functions in scripts to create and delete libraries. For information about these functions, see the PowerScript Reference.