Multiple-Choice Questions About Powerbuilder Question: 1 Which of the following variable equals 10? Answer real a = 10 double a = 10.0001 decimal a = 10.09 long a= 10.3 int a = 9.5 Question: 2 Which of the options are available in crosstab? Answer Stored Procedure Update Update properties Retrieve …. Continue Reading »
PowerBuilder API Document
Powerbuilder DataWindow Script Techniques
Powerbuilder DataWindow Script Techniques How do I set a property for an entire column? How many rows selected? How do I check the name of the DataWindow? Putting a Help button on a DataWindow dialog box DataWindow dialog boxes, such as the ones which may come up for Sort( ) …. Continue Reading »
Variables In PowerBuilder
Variables In PowerBuilder Arrays Initializing
1 2 | String ls_array[] Ls_array = {"value1", "value2","value3", "value4"} |
Set to Null Array
1 2 3 4 | String ls_arrayofnulls SetNull(ls_arrayofnulls) // … some code that loads values into ls_array[] ls_array = ls_arrayofnulls |
Decimal
1 2 3 4 5 6 7 8 | decimal {4} a,b,d,e,f decimal {3} c a = 20.0/3 // a contains 6.6667 b = 3 * a // b contains 20.0001 c = 3 * a // c contains 20.000 d = 3 * (20.0/3) // d contains 20.0000 e = Truncate(20.0/3, 4) // e contains 6.6666 f = Truncate(20.0/3, 5) // f contains 6.6667 |
Default Values Variable Default Value Blob A blob of 0 length; an empty blob Char (or character) ASCII value 0 Boolean FALSE Date 1900-01-01 (January 1, 1900) DateTime 1900-01-01 00:00:00 Numeric (integer, long, decimal, real, double, UnsignedInteger, …. Continue Reading »
46 Tips and Tricks Of PowerBuilder Datawindow
1. How to make the column of the stored file directory display pictures? Answer: Select the display as picture property of the corresponding column to be true 2. How to copy the data of the selected row of grid type to the system clipboard? Answer:
1 2 3 | string ls_selected ls_selected = dw_1.Object.DataWindow.Selected.Data clipbord (ls_selected) |
3: How to change …. Continue Reading »
123 Tips & Tricks Of PowerBuilder
Collection PowerBuilder Tips & Tricks. Get From The Internet Tips 1: Changing DataWindow object by code methods Tips 2: Open dynamic window approach Tips 3: Displays a consistent style with the Windows operating system About dialog. First, the following statement external function: Tips 4: How COLUMN display style between EDIT, …. Continue Reading »
Notepad++ Syntax Highlighting For PowerBuilder
Notepad++ Syntax Highlighting For PowerBuilder You can download notepad++ from home page click here Step Setup step 1 open notepad++ Step 2 chooose menu language –>User Defined language –> Defined Your Language… Step 3 Import –> choose file syntax type.xml –> close notepad++ Step 4 open notepad++. you will see …. Continue Reading »
DataWindow Processing Property Values
Auto LogOff In PowerBuilder
Auto LogOff In PowerBuilder To autologoff after an hour of inactivity, place code in events as follows: If you are familiar with the workings of the Idle event, then you could have it start a timer on your frame window in PB5, and there is a timer NVO in PFC …. Continue Reading »
Window Event In PowerBuilder
Window Event In PowerBuilder WINDOW EVENTS IN POWERBUILDER Activate Just before the window becomes active Clicked User clicks in an unoccupied area of the window (any area with no visible, enabled control) Close When window is closed. CloseQuery When you remove a window from display (close it) Deactivate When window …. Continue Reading »