PowerBuilder Interview Question and Answers
66. |
When would you use SetTrans()? |
|
We use SetTrans() when only a limited No. of connections to the DB is allowed or we are only retrieving data and do not need to hold DB locks on records the user is modifying. |
|
|
67. |
Define ‘Retrieve Only as Needed’? |
|
PowerBuilder displays the first row on the screen when its complete retrieveing. When we scroll downward additional rows are retrieved. |
|
|
68. |
How PowerBuilder search for a function? |
|
Bottom - to -Top. |
|
|
69. |
How PowerBuilder search for a function? |
|
Top - to - Bottom. |
|
|
70. |
Will it ignore extra retrieve arguments to the Retrieve() function? |
|
YES, it will ignore extra arguments. |
|
|
71. |
Explain AcceptText() function. |
|
AcceptText() function applies the content of the edit control to the PrimaryBuffer after validating the data. We can also specify to the Update() via argument of call AcceptText() internally before applying the changes to the database. AcceptText() function should no be called from ItemChanged event. This is because AcceptText() function triggers the ItemChanged event.
Return value is . Return 1 if succeeds and -1 if its fails. |
|
|
72. |
Explain DBERROR() & ERROR() event. |
|
DBERROR() event is fired when a database related error occurs. ERROR() event at the DataWindow control level is triggered, when a wrong expression is encountered in the object notaiton. |
|
|
73. |
How to load a text file in a DataWindow? |
|
We can use ImportFile() function. |
|
|
74. |
What STATUS occurs When a row is copied from another DataWindow? |
|
NewModified! |
|
|
75. |
What are the buffers will maintain a DataWindow if set to ReadOnly? |
|
All the four buffers. Primary!, Original!, Delete!, Filter!. |
|
|