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

Code examples – PB Docs 2019 – PowerBuilder Library

Code examples – PB Docs 2019

Code examples

Example 1:

For example, to load the runtime DLL file PBORC190.dll from
where PowerBuilder IDE is installed, you write code differently
between 2019 R3 and 2019 R2.

Also note that the file name PBORC190.dll in 2019 R2 has been
changed to PBORC.dll in 2019 R3.

Original code in 2019 R2:

Modified code in 2019 R3:

This code example hard-codes the path of IDE and runtime, if you
want to read the directory from the registry, use the next
example.

Or you can write code like this in 2019 R3 which reads the path
of IDE and runtime from the registry instead of the hard-coded
path:

In summary, you need to write code in two steps in version 2019
R3:

Step 1: Define a method that can add a path to the PATH
environment variable.

Step 2: Call the method to add the PowerBuilder Runtime and
PowerBuilder IDE directories to the PATH environment variable and then
load the DLL file.

Note that if the path of IDE or runtime is hard-coded in the
scripts, make sure to update the path accordingly if PowerBuilder
Runtime and IDE are upgraded to a new version.

Example 2:

If you have source code like below which determines the
PowerBuilder versions according to the class name, you will need to
change the code accordingly.

Original code in 2019 R2:

Modified code in 2019 R3:


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