Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Questions And Answers for PowerBuilder Interviews

HomePrevious Lesson: Question: #23 of #131
Next Lesson: Question: #25 of #131
Question: #24 of #131 Section: DataWindow Version: 5.0 or later

Question

Say, you have a DataWindow which returns 10,000 rows. After retrieving few rows, say, 100 rows, you have decided not to retrieve the rest of the rows. Explain different methods of canceling the result set.

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

There are two ways to accomplish this.
In the first method, you can call DBCancel() to cancel the query from a CommandButton Clicked event or in other event. However, once PowerBuilder starts retrieving the data, it will not give the control to the user till it completes retrieval. So, you need to put some code/comments in RetrieveRow event which will yield a little bit.
In the second method, you can just return 1 from the RetrieveRow event.

Click here to go to top of the page.
HomePrevious Lesson: Question: #23 of #131
Next Lesson: Question: #25 of #131

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com