Advanced ways to manipulate OLE objects – PB Docs 70
Advanced ways to manipulate OLE objects In addition to OLE objects in controls and objects for automation, PowerBuilder provides an interface to the underpinnings of OLE data storage. OLE data is stored in objects called streams, which live in objects called storages. Streams and storages are analogous to the files and directories of a file…
Using a user object as an automation server – PB Docs 70
Using a user object as an automation server Accessing a registered user object as an automation server involves these steps: Create the object you will access. Build the object’s runtime library. Register the object. Write code in the client that connects to and uses the object. Creating a class user object to be a server…
Using PowerBuilder as an automation server – PB Docs 70
Using PowerBuilder as an automation server Using PowerBuilder.Application as an automation server involves these steps: Define the objects you will access. Build the runtime libraries for those objects. Write code in the client that connects to PowerBuilder, creates the objects, and accesses their methods and properties. Creating the userobjects you will access How you define…
Creating and using a named server – PB Docs 70
Creating and using a named server Using your own named server involves these steps: Define the objects you will access. Build the runtime libraries for those objects. Register your server in the registry. Write code in the client that connects to your server, creates objects, and accesses their methods and properties. Creating the user objects…
Accessing a remote object via automation – PB Docs 70
Accessing a remote object via automation The PowerBuilder automation server provides support for distributed computing. You can use OLE to instantiate a local proxy object in a PowerBuilder session that provides access to a remote PowerBuilder server. Using automation servers with transaction servers You can also deploy an automation server to a transaction server such…
The Message object – PB Docs 70
The Message object The Message object is a predefined PowerBuilder global object (like the default Transaction object SQLCA and the Error object) that is used in scripts to process Microsoft Windows events that are not PowerBuilder-defined events. When a Microsoft Windows event occurs that is not a PowerBuilder-defined event, PowerBuilder populates the Message object with…
Context information – PB Docs 70
Context information The PowerBuilder context feature allows applications to access certain host (non-PowerBuilder) services. This is a PowerBuilder implementation of functionality similar to the COM QueryInterface. PowerBuilder provides access to the following host services: Context information service Keyword service Internet service Transaction server service Error logging service Secure Sockets Layer service PowerBuilder creates service objects…
Using utility functions to manage information – PB Docs 70
Using utility functions to manage information The utility functions provide a way to obtain and pass Windows information to external functions and can be used as arguments in the PowerScript Send function. There are four utility functions: Four utility functions Function Return value Purpose Handle UnsignedInt Returns the handle to a specified object IntHigh UnsignedInt…
Controlling access for instance variables – PB Docs 70
Controlling access for instance variables Instance variables have access settings that provide control over how other objects’ scripts access them. You can specify that a variable is: Public Accessible to any other object Protected Accessible only in scripts for the object and its descendants Private Accessible in scripts for the object only For example:
|
1 |
public integer ii_currentvalue |
|
1 |
CONSTANT public integer WARPFACTOR = 1.2 |
…
Why distributed computing – PB Docs 70
Why distributed computing About distributed computing Distributed computing allows you to get the most out of your investment in the network computer architecture. By taking advantage of the capabilities of distributed computing, you can streamline the process of developing and deploying PowerBuilder applications on network computer systems. Distributed computing is a natural outgrowth of the…