| Hyderabad Jobs | Book Website | ![]() |
I Love Hyderabad | Hyderabad Colleges |
| Home | Business Emails | Hyderabad Classifieds | Contact Us | |
| 7 Wonders of Hyderabad | Web Hosting | Yellow Pages | Our Network | |
Introduction to PowerBuilder
Triggering Events DynamicallySometimes, events/functions do not exist at compile time. Take the example of writing a generic function (as shown below) which saves DataWindows in a given window. Before saving each DataWindow, this function executes ue_presave event before and ue_postsave after saving the DataWindow. We expect the DataWindow in the passed window to have these events at run-time. In situations like these, we can use the DYNAMIC keyword, so that compiler doesn't check for the existence of the event or function and their arguments & return types.
Calling events dynamically is slower than calling static event/functions. That is because, a check is to be done at run-time for event/function existence. So, use DYNAMIC keyword only when necessary. What happens if an event doesn't exist at run-time when using DYNAMIC keyword? In this matter it works silently. It won't generate any errors that abort the application, instead it returns -1 as the return value. So, make sure you check for the return values.
|
| Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com |