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…
OLE custom controls – PB Docs 70
OLE custom controls The OLE control button in the Controls menu gives you the option of inserting an object or a custom control in an OLE container. When you select an OLE custom control (ActiveX control), you fix the container’s type and contents. You cannot choose later to insert an object and you can’t select…
Identifying the dragged control – PB Docs 70
Identifying the dragged control To identify the type of control that was dropped, use the source argument of the DragDrop event. This script for the DragDrop event in a picture declares two variables, then determines the type of object that was dropped:
|
1 |
CommandButton lcb_button |
|
1 |
StaticText lst_info |
|
1 |
|
1 |
IF source.TypeOf() = CommandButton! THEN |
|
1 |
lcb_button = source |
|
1 |
lcb_button.Text = "You dropped a Button!" |
|
1 |
ELSEIF source.TypeOf() = StaticText! THEN |
|
1 |
lst_info = source |
|
1 |
lst_info.Text = "You dropped the text!" |
|
1 |
END IF<i></i> |
Using CHOOSE CASE If…
About DDE – PB Docs 70
About DDE Dynamic Data Exchange (DDE) makes it possible for two Windows applications to communicate with each other by sending and receiving commands and data. In this way, the applications can share data, execute commands remotely, and check error conditions. PowerBuilder supports DDE by providing PowerScript events and functions that enable a PowerBuilder application to…
Using Transaction objects to call stored procedures – PB Docs 70
Using Transaction objects to call stored procedures SQLCA is a built-in global variable of type transaction that is used in all PowerBuilder applications. In your application, you can define a specialized version of SQLCA that performs certain processing or calculations on your data. If your database supports stored procedures, you may already have defined remote…
Providing MicroHelp – PB Docs 70
Providing MicroHelp MDI provides a MicroHelp facility that you can use to display information to the user in the status area at the bottom of the frame. For example, when the user selects a menu item, the MicroHelp facility displays a description of the selected item in the status area. You can define MicroHelp for…
Examining a class definition – PB Docs 70
Examining a class definition This section illustrates how to access a class definition object and how to examine its properties to get information about the class, its scripts, and its variables. Getting a class definitionobject To work with class information, you need a class definition object. There are two ways to get a ClassDefinition object…
Troubleshooting a Jaguar component – PB Docs 70
Troubleshooting a Jaguar component When you are building a PowerBuilder custom class user object as a Jaguar CTS component, you can use the PowerBuilder debugger to debug the Jaguar component. You can debug the component whether you use the live editing feature in the User Object painter or the Project painter to deploy the component…
About form styles – PB Docs 70
About form styles InfoMaker comes with built-in form styles with which users can build sophisticated forms. You can create your own form styles in PowerBuilder and provide them to InfoMaker users. With these custom form styles, you can enforce certain standards in your forms and provide extra functionality to your InfoMaker users. For example, you…
Using generated Java classes – PB Docs 70
Using generated Java classes Once you’ve generated Java representations of your user objects, you can use them in an application written in Java as you would any other classes, by writing Java code that uses the functions exposed in the class. Deploying Java classes When you deploy the Java client application, you must also deploy…