Multiple-Choice Questions About Powerbuilder Question: 501 Which PB command can exit the current loop? Answer exit break continue stop Question: 502 Which Powerbuilder variable type can receive oracle sysdate? Answer String Time Datetime Date Question: 503 Which is the answer of the program? string ls_a[] messagebox(”,upperbound(ls_a)) messagebox(”,lowerbound(ls_a)) Answer Both messageboxes …. Continue Reading »
Multiple-Choice Questions About Powerbuilder Part 5
Multiple-Choice Questions About Powerbuilder Question: 401 Insert a groupbox(gb_1) in the tab’s(tab_1) tabpage(tabpage_1),and insert a datawindow in the groupbox(gb_1),which is datawindow’s(dw_1) path? Answer Dw_1 tabpage_1.dw_1 tab_1.tabpage_1.gb_1.dw_1 tab_1.tabpage_1.dw_1 Question: 402 How to get DataWindow column count ? Answer Integer(This.Object.Column) Integer(This.Object.DataWindow.Column) Integer(This.Object.DataWindow.Column.Count) Integer(This.Object.Column.Count) Question: 403 What properties are changing the size of …. Continue Reading »
Multiple-Choice Questions About Powerbuilder Part 4
Multiple-Choice Questions About Powerbuilder Question: 301 In the inheritence hirerachy, PowerBuilder is how to search ? Answer Just in Top Bottom-to-Top Top-to-Bottom Randomize Question: 302 Which DataWindow style on Program execution , we can adjust title field to change field width ? Answer Group N-UP FreeForm Grid Question: 303 The …. Continue Reading »
Multiple-Choice Questions About Powerbuilder Part 3
Multiple-Choice Questions About Powerbuilder Question: 201 Which of the following are advantages of using the Modify method over dot notation? Answer Modification of properties in nested DataWindows is allowed. The control and property to be modified can be expressed programmatically Invalid references to DataWindow objects generate compiler versus runtime errors. …. Continue Reading »
Multiple-Choice Questions About Powerbuilder Part 2
Multiple-Choice Questions About Powerbuilder Question: 101 How do you manipulate .INI file through PowerBuilder functions ? Answer Fileread() ProfileInt() SetProfileString() ProfileString( ) Question: 102 Which command/function will blank out a DataWindow? Answer ClearValues() Reset() ResetTransObject ( ) DeleteRow() Question: 103 Use Idle() function in Pb Scripts will be? Answer PowerBuilder …. Continue Reading »
Multiple-Choice Questions About Powerbuilder Part 1
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 »