Adding an extension to a PowerBuilder target

PowerBuilder Native Interface

Adding an extension to a PowerBuilder target

The simplest way to add a PowerBuilder native class to a PowerBuilder target is to import the object descriptions in the PBX file into a library in the PowerBuilder System Tree. You can also use a command-line tool to create a PBD file from a PBX file and add it to the target's library search path. See pbx2pbd125.

Steps To import the descriptions in an extension into a library:

  1. Copy the PBX file into a directory on the application's path.

  2. In the System Tree, expand the target in which you want to use the extension, right-click a library, and select Import PB Extension from the pop-up menu.

    pbext01.gif
  3. Navigate to the location of the PBX file and click Open.

    Each class in the PBX displays in the System Tree so that you can expand it, view its properties, events, and methods, and drag and drop to add them to your scripts.