Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Using the extension in PowerBuilder – PB Docs 2022 – PowerBuilder Library

Using the extension in PowerBuilder – PB Docs 2022

Using the
extension in PowerBuilder

To use the PowerBuilder native class in a PowerBuilder
application, import the object descriptions in the PBX file into a
library in your application.

To import the extension into an application:

  1. Copy the PBX (or DLL) file to a directory on your
    application’s path.

  2. In PowerBuilder, create a new workspace.

  3. On the Target page of the New dialog box, select the
    Application icon to create a new target, library, and application
    object.

  4. In the System Tree, expand the new target, right-click the
    library, and select Import PB Extension from the pop-up menu.

    ni_pbext01.gif
  5. Navigate to the location of the pbadd.pbx file and click
    Open.

To invoke the f_add function in PowerBuilder:

  1. Create a new window called w_add, and add three single-line
    edit boxes and a command button to it.

  2. Declare an instance variable called mypbadd for the pbadd
    native class, and then add this script to the button’s Clicked
    event:

    The pbadd class displays in the System Tree. As shown in the
    following screen shot, you can expand its function list:

    addints1.gif
  3. Add open(w_add)to the application’s Open event.

  4. Run the application.

The application runs just as it would if you had created a custom
class user object in PowerBuilder with an f_add function. If
PowerBuilder cannot find pbadd.pbx, the runtime error in the Clicked
event script will be triggered and caught. Put pbadd.pbx in the same
directory as the executable or the PowerBuilder runtime DLLs to make
sure it can be found.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x