GetDynamicNumber – PB Docs 126
GetDynamicNumber PowerScript function Description Obtains numeric data from the DynamicDescriptionArea after you have executed a dynamic SQL statement. Restriction You can use this function only after executing Format 4 dynamic SQL statements. Syntax
|
1 |
<span>DynamicDescriptionArea</span><span>.GetDynamicNumber</span> ( <span>index</span> ) |
Argument Description DynamicDescriptionArea The name of the DynamicDescriptionArea, usually SQLDA. index An integer identifying the output parameter descriptor from which you…
Client-managed transactions – PB Docs 126
Client-managed transactions EJB client applications can control transactions on the server using the EJBTransaction object. This object has methods that enable the client to begin, commit, or roll back a transaction. The client can also get the status of a transaction, change its timeout value, or modify the transaction so that it cannot be committed….
GetOrigin – PB Docs 126
GetOrigin PowerScript function Description Finds the X and Y coordinates of the upper-left corner of the ListView item. Controls ListView controls Syntax
|
1 |
<span>listviewname</span><span>.GetOrigin</span> ( <span></span><span>x , y</span> <span></span>) |
Argument Description listviewname The ListView control for which you want to find the coordinates of the upper-left corner x An integer variable in which you want to store the X coordinate for…
Referencing entities in descendants – PB Docs 126
Referencing entities in descendants When you declare a variable whose datatype is a kind of object, such as a window, you can use the variable to reference any entity defined in the object, but not in one of its descendants. Consider the following code: w_customer mycust Open(mycust)// The following statement is legal if// w_customer window…
Operator precedence in PowerBuilder expressions – PB Docs 126
Operator precedence in PowerBuilder expressions Order of precedence To ensure predictable results, all operators in a PowerBuilder expression are evaluated in a specific order of precedence. When the operators have the same precedence, PowerBuilder evaluates them left to right. These are the operators in descending order of precedence: Table 4-4: Order of precedence of operators…
Deleting items – PB Docs 126
Deleting items To allow the user to delete items, enable the TreeView’s DeleteItems property. When the user presses the Delete key, the selected item is deleted and the DeleteItem event is triggered. Any children are deleted too. If you want more control over deleting, such as allowing deleting of detail items only, you can call…
GetDateLimits – PB Docs 126
GetDateLimits PowerScript function Description Retrieves the maximum and minimum date limits specified for the calendar. Controls MonthCalendar control Syntax
|
1 |
<span>controlname</span>.<span>GetDateLimits</span> ( <span>min</span>, <span>max</span> ) |
Argument Description controlname The name of the MonthCalendar control for which you want to determine the date limits min A date value returned by reference that represents the minimum date that can be referenced or…
About building a COM or COM+ client – PB Docs 126
About building a COM or COM+ client A PowerBuilder application can act as a client to a COM server. The server can be built using any COM-compliant application development tool and it can run locally, on a remote computer as an in-process server, or in COM+. Configuring a client computer to access a remote component…
String and char datatypes in PowerBuilder – PB Docs 126
String and char datatypes in PowerBuilder General information There is no explicit char literal type. String literals convert to type char using the following rules: When a string literal is assigned to a char variable, the first character of the string literal is assigned to the variable. For example:
|
1 |
char c = "xyz" |
results in the character x…
Renaming items – PB Docs 126
Renaming items If you enable the TreeView’s EditLabels property, the user can edit an item label by clicking twice on the text. Events There are two events associated with editing labels. The BeginLabelEdit event occurs after the second click when the EditLabels property is set or when the EditLabel function is called. You can disallow…