Syntax 2 For instances of an EJB component – PB Docs 150
Syntax 2 For instances of an EJB component Description Allows a PowerBuilder client or component to obtain the home interface of an EJB component in EAServer in order to create an instance of the component. Controls Connection objects, TransactionServer objects Syntax
1 |
<span>objname</span>.<span>Lookup</span> (<span>objectvariable , componentname {, homeid}</span> ) |
Argument Description objname The name of the Connection object used to establish the connection…
Reading DBParm values from an external text file – PB Docs 150
Reading DBParm values from an external text file As an alternative to setting the DBParm property in a PowerBuilder application script, you can use the PowerScript ProfileString function to read DBParm values from a specified section of an external text file, such as an application–specific initialization file. To read DBParm values from an external text…
Working with edit styles in the Database painter – PB Docs 2017
Working with edit styles in the Database painter Typically, you define edit styles in the Database painter, because edit styles are properties of the data itself. Once defined in the Database painter, the styles are used by default each time the column is placed in a DataWindow object. To create a new edit style In…
SelectText – PB Docs 2018
SelectText PowerScript function Contents Syntax 1: For editable controls (except RichTextEdit) Syntax 2: For RichTextEdit controls and presentation styles Selects text in an editable control. To select text in Use Any editable control, other than a RichTextEdit Syntax 1 A RichTextEdit control or a DataWindow whose object has the RichTextEdit presentation style Syntax 2 Document…
Using ODBC in PowerBuilder – PB Docs 2022
Using ODBC in PowerBuilder What you can do The following ODBC connectivity features are available in PowerBuilder: Connect to a SQL Anywhere standalone database (including the Demo Database) using the SQL Anywhere ODBC driver and the ODBC interface Create and delete local SQL Anywhere databases For instructions, see the section called “Creating and deleting a…
PageRight – PB Docs 2019
PageRight PowerScript event Description Occurs when the open space to the right of the scroll box is clicked. Event ID Event ID Objects pbm_sbnpagedown HScrollBar, HTrackBar Arguments None Return Values Long. Return code choices (specify in a RETURN statement): 0 — Continue processing Usage When the user clicks in a horizontal scroll bar, nothing happens…
Labels – PB Docs 2021
Labels Description You can include labels in scripts for use with GOTO statements. Syntax
1 |
Identifier: |
Usage A label can be any valid identifier. You can enter it on a line by itself above the statement or at the start of the line before the statement. For information about the GOTO statement, see GOTO. For information…
C0321 Compiler Error – PB Docs 2021
C0321 Compiler Error Message text Event (event) is different from its prototype: event. Explanation Error C0321 is generated when you deploy a .NET target that contains an inherited event that has a different argument from its prototype. This can occur if the datatype of an inherited event’s argument is changed in the Source editor. Suppose…
PowerBuilder System Objects and Controls – PB Docs 2022
PowerBuilder System Objects and Controls Contents What are system objects? System object properties, events, and functions System object inheritance hierarchy Viewing system objects About this chapter This chapter provides overview information about PowerBuilder system objects and controls. This chapter also lists the PowerBuilder system objects not included in this book and explains why they are…
Identifying the dragged control – PB Docs 90
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 your window has a large number of controls…