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: #81 of #131
Next Lesson: Question: #83 of #131
Question: #82 of #131 Section: DataWindow Version: 5.0 or later

Question

I need to declare an Instance variable for a DataWindow control ONLY, in a window. What should I do?

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

When you declare an instance variable at a window, it is accessible to all controls in the window. First of all, you can't declare an Instance/Shared variable for a specific control in a window. If you have the need of that, you need to create a user object of that specific control and declare instance/shared variables in the user object. Then place the user object in the window. In summary, a window control can't have it's own instance/shared variables, but the user object can (in the user object painter ONLY, not in Window Painter).

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

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