Copying, moving, and deleting objects

As the needs of your target change, you can rearrange the objects in libraries. You can copy and move objects between libraries or delete objects that you no longer need.

StepsTo copy objects using drag and drop:

  1. In the Tree view or the List view, select the objects you want to copy.

  2. Drag the objects to a library in either view. If the contents of a library are displaying in the List view, you can drop it there.

    PowerBuilder copies the objects. If an object with the same name already exists, PowerBuilder prompts you and if you allow it, replaces it with the copied object.

StepsTo move objects using drag and drop:

  1. In the Tree view or the List view, select the objects you want to move.

  2. Press and hold Shift and drag the objects to a library in either view. If the contents of a library are displaying in the List view, you can drop it there.

    PowerBuilder moves the objects and deletes them from the source library. If an object with the same name already exists, PowerBuilder prompts you and if you allow it, replaces it with the moved object.

StepsTo copy or move objects using a button or menu item:

  1. Select the objects you want to copy or move to another library.

  2. Do one of the following:

    The Select Library dialog box displays.

  3. Select the library to which you want to copy or move the objects and click OK.

StepsTo delete objects:

  1. Select the objects you want to delete.

  2. Do one of the following:

    You are asked to confirm the first deletion.

    NoteBeing asked for confirmation By default, PowerBuilder asks you to confirm each deletion. If you do not want to have to confirm deletions, select Design>Options to open the Options dialog box for the Library painter and clear the Confirm on Delete check box in the General tab page.

    PowerBuilder records this preference as the DeletePrompt variable in the Library section of the PowerBuilder initialization file.

  3. Click Yes to delete the entry or Yes To All to delete all entries. Click No to skip the current entry and go on to the next selected entry.