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

Question

You have declared a global variable xyz and a local variable xyz in the clicked event of a CommandButton. When you refer to xyz in the CommandButton's clicked event, which variable is referred? Global or Local?

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

Well, when you refer to xyz variable, POWERBUILDER search for the variable in local, instance/shared, instance/shared at the ancestor, global order. That means, in this case, the local variable is referred. To refer to the global variable which has the same name of a local variable, you need to prefix double colon before the variable name.

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

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