Using external functions – PB Docs 70
Using external functions External functions are functions that are written in languages other than PowerScript and stored in dynamic libraries. On Windows On Windows, external functions are stored in dynamic link libraries (DLLs). On UNIX On UNIX, external functions are stored in shared (archive) libraries with the extension .a, .so, or .sl depending on the…
Sending Windows messages – PB Docs 70
Sending Windows messages To send Windows messages to a window that you created in PowerBuilder or to an external window (such as a window you created using an external function), use the Post or Send function. To trigger a PowerBuilder event, use the EVENT syntax or the TriggerEvent or PostEvent function. Using Post and Send…
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…
Using the runtime automation server – PB Docs 70
Using the runtime automation server Chapter 17, “Using OLE in an Application “, explains how PowerBuilder provides containers for OLE objects and custom controls and how you can use automation to program those objects. The functionality for those objects is provided by server applications. The programming tells a server application how to manipulate its data….
CreateObject function – PB Docs 70
CreateObject function Description Creates an instance of a PowerBuilder class in a PowerBuilder.Application OLE server session. Controls PowerBuilder.Application (automation server) Syntax
|
1 |
{ <i>automationobject</i>.} <b>CreateObject</b> ( <i>classname</i> ) |
Argument Description automationobject When PowerBuilder is the OLE client, the name of the OLEObject instantiated with the PowerBuilder.Application automation server. For other clients, use syntax appropriate for calling a function belonging to an…
GenerateGUID function – PB Docs 70
GenerateGUID function Description Creates a globally unique identifier (GUID) that can be used as a class ID (CLSID) when you register an object and its type library in the Windows registry. Both the object and its type library have their own GUID. Controls PowerBuilder.Application (automation server) Syntax
|
1 |
{ <i>automationobject</i>.} <b>GenerateGUID</b> ( REF <i>guidvariable</i> ) |
Argument Description automationobject When PowerBuilder is the…