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

OLEObjects for efficiency – PB Docs 2018 – PowerBuilder Library

OLEObjects for efficiency – PB Docs 2018

OLEObjects for efficiency

When your automation command refers to a deeply nested object with
multiple server qualifiers, it takes time to negotiate the object’s
hierarchy and resolve the object reference. If you refer to the same
part of the object hierarchy repeatedly, then for efficiency you can
assign that part of the object reference to an OLEObject variable. The
reference is resolved once and reused.

Instead of coding repeatedly for different properties:

you can define an OLEObject variable to handle all the
qualifiers:

Example: resolving an object
reference

This example uses an OLEObject variable to refer to a Microsoft
Word object. Because it is referred to repeatedly in a FOR loop, the
resolved OLEObject makes the code more efficient. The example destroys
the OLEObject variable when it is done with it:


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