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…
GenerateRegFile function – PB Docs 70
GenerateRegFile function Description Creates a file with registry update instructions for deploying a PowerBuilder object as an automation server. Controls PowerBuilder.Application (automation server) Syntax
|
1 |
{ <i>automationobject</i>.} <b>GenerateRegFile</b> ( <i>guid</i>, <i>classname</i>, <i>progid</i>, <br /> <i>majorversion</i>, <i>minorversion</i>, <i>description</i>, <i>outputfilename</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…
Resolving naming conflicts – PB Docs 70
Resolving naming conflicts There are two areas in which name conflicts occur: Variables that are defined within different scopes can have the same name. For example, a global variable can have the same name as a local or instance variable. The compiler will warn you of these conflicts, but you don’t have to change the…
Calling external functions and programs on UNIX – PB Docs 70
Calling external functions and programs on UNIX When you work with PowerBuilder on the UNIX platform, there are UNIX-specific considerations for: Calling external functions in PowerBuilder Running other programs About calling external functions On UNIX, you can call external functions in shared libraries from several sources: UNIX versions of Windows API DLLs Existing UNIX shared…