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

Step 4: Implement native classes and global functions – PB Docs 125 – PowerBuilder Library

Step 4: Implement native classes and global functions – PB Docs 125

Step 4: Implement native classes and global functions

The implementation of each class must include the implementation
of the Invoke and Destroy methods,
as well as all the methods declared for the class. Invoke and Destroy are
methods of the IPBX_UserObject interface.

When the PowerBuilder application calls a method on the native
class, the PBVM calls the Invoke method, which
dispatches the call based on the method ID or method name. The method
name is used when the method is called dynamically.

The Invoke method must be coded to invoke
each method in the class. The example that follows shows a switch–case
statement that invokes either funcA or funcB,
depending on the value of the method ID. When the PowerBuilder application
has finished using an instance of a native class, the PBVM calls
the Destroy method.

This example does not show the implementation of the methods
of the class itself:

The following PBX_InvokeGlobalFunction contains
the implementation of the three global functions included in the
description shown in “Step 3: Declare native classes
and global functions”
:


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