ClientName – PB Docs 2017
ClientName property (DataWindow object) Description The name of the OLE client. The default is “Untitled.” ClientName is used by some applications in the server window’s title. Applies to OLE Object and TableBlob controls Syntax PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.ClientName |
Describe and Modify argument:
|
1 |
"controlname.ClientName { = ' clientname  ' }" |
Parameter Description controlname The name of a blob column or an OLE…
Syntax 2: For bitmaps of graphs – PB Docs 2018
Syntax 2: For bitmaps of graphs Description Replaces the contents of the system clipboard with a bitmap image of a graph. You can paste the image into other applications. Applies to Graph objects in windows and user objects, and graphs in DataWindow controls and DataStore objects Syntax
|
1 |
name.Clipboard ( { graphobject } ) |
Argument Description name The name of the…
Sample declarations – PB Docs 2018
Sample declarations Suppose you have created a C dynamic library, SIMPLE.DLL, that contains a function called SimpleFunc that accepts two parameters: a character string and a structure. The following statement declares the function in PowerBuilder, passing the arguments by reference:
|
1 2 |
FUNCTION int SimpleFunc(REF string lastname, & Â Â Â REF my_str pbstr) LIBRARY "simple.dll" |
By default, PowerBuilder handles string arguments and return values as if they have Unicode encoding….
NavigationProgressIndex – PB Docs 2019
NavigationProgressIndex PowerScript event Description Occurs when the overall page loading progress changes. Event ID Event ID Objects None WebBrowser controls Arguments Argument Description progressIndex The page loading progress. Return Values None Usage The NavigationProgressIndex event will be triggered for uncertain times even if the page has been 100% loaded. The NavigationProgressIndex event will be triggered…
IPBX_VisualObject interface – PB Docs 2021
IPBX_VisualObject interface Contents CreateControl GetEventID GetWindowClassName Description The IPBX_VisualObject interface inherits from IPBX_UserObject and is the direct ancestor class of visual PowerBuilder native classes. Methods IPBX_VisualObject has three direct methods: CreateControl GetEventID GetWindowClassName IPBX_NonVisualObject inherits two methods from the IPBX_UserObject interface: Destroy Invoke Document get from Powerbuilder help Thank you for watching.
C0039 Compiler Error – PB Docs 2021
C0039 Compiler Error Message text Cursor/Procedure (procedure) has not been declared. Explanation The following script in a function generates C0039 because the cursors li_a and abc have not been declared:
|
1 2 3 4 5 6 7 8 9 |
int li_a DECLARE curs CURSOR FOR SELECT employee.emp_id FROM employee WHERE employee.salary > 1000; OPEN curs; // compiles OPEN li_a; // generates C0039 OPEN abc; // generates C0039 |
The following script in a function generates C0039 because the procedures li_a and abc have not been declared:
|
1 2 3 4 5 |
int li_a DECLARE proc PROCEDURE FOR procname; EXECUTE proc; // compiles EXECUTE li_a; // generates C0039 EXECUTE abc; // generates C0039 |
Document get from Powerbuilder help…
Right – PB Docs 2022
Right PowerScript function Description Obtains a specified number of characters from the end of a string. Syntax
|
1 |
Right ( string, n ) |
Argument Description string The string from which you want characters returned n A long whose value is the number of characters you want returned from the right end of string Return value String. Returns the rightmost n…
Using online Help – PB Docs 100
Using online Help PowerBuilder has two kinds of online Help: HTML Help and Windows Help. About HTML Help HTML Help contains several PowerBuilder books: this User’s Guide , Application Techniques , the DataWindow Programmer’s Guide , Connecting to Your Database , and, for PowerBuilder Enterprise users, Working with Web and JSP Targets . Context-sensitive Help…
Microsoft SQL Server Fetching rows – PB Docs 125
Microsoft SQL Server Fetching rows The SQL Server interfaces support the following FETCH statements (Microsoft_SQL_Server_FETCH): FETCH NEXT (Microsoft SQL Server FETCH NEXT) FETCH FIRST (Microsoft SQL Server FETCH FIRST, FETCH PRIOR, and FETCH LAST) FETCH PRIOR (Microsoft SQL Server FETCH FIRST, FETCH PRIOR, and FETCH LAST) FETCH LAST (Microsoft SQL Server FETCH FIRST, FETCH PRIOR,…
Assigning one array to another – PB Docs 125
Assigning one array to another General information When you assign one array to another, PowerBuilder uses the following rules to map the values of one onto the other. One-dimensional arrays To an unbounded array The target array is the same as the source:
|
1 |
integer a[ ], b[ ] |
|
1 |
a = {1,2,3,4} |
|
1 |
b = a |
To a bounded array If the source array is smaller, values…