Regenerating library entries

Why you need to regenerate objects

Occasionally you might need to update library entries. For example:

When you regenerate an entry, PocketBuilder recompiles the source form stored in the library and replaces the existing compiled form with the recompiled form.

StepsTo regenerate library entries:

  1. Select the entries you want to regenerate.

  2. Click the Regenerate button or select Entry>Library Item>Regenerate from the menu bar.

    PocketBuilder uses the source to regenerate the library entry and replaces the current compiled object with the regenerated object. The compilation date and size are updated.

Regenerating descendants

You can use the Browser to easily regenerate all descendants of a changed ancestor object.

Figure 4-5: Regenerating objects from the Browser

Shown is the Window tab page of the Browser. The left half of the screen lists windows, and the right half lists Properties, Events Functions, Variables, and Structures. A  window named w _  customer is highlighted and a pop up menu lists the options Edit, Copy, Paste, which is grayed, and Expand All, Regenerate, Show Hierarchy, and Help. A check mark is visible next to the Show Hierarchy menu item, indicating that the items are organized in an hierarchical fashion.

StepsTo regenerate descendants:

  1. Click the Browser button in the PowerBar.

    The Browser displays.

  2. Select the tab for the object type you want to regenerate.

    For example, if you want to regenerate all descendants of window w_ancestor, click the Window tab.

  3. Select the ancestor object and choose Show Hierarchy from its pop-up menu.

    The Regenerate button displays on the pop-up menu.

  4. Click the Regenerate button.

    PocketBuilder regenerates all descendants of the selected ancestor.

For more about the Browser, see “Browsing the class hierarchy”.

NoteRegenerate limitations If you regenerate a group of objects, PocketBuilder regenerates them in the order in which they appear in the library, which may cause an error if an object is generated before its ancestor. For this reason, you should use a full or incremental build to update more than one object at a time.