Type promotion when matching arguments for overloaded functions  Passing arguments to functions and events

Chapter 6: Calling Functions and Events

Extending and overriding events

In PocketBuilder, when you write event scripts in a descendent object, you can extend or override scripts that have been written in the ancestor.

Extending (the default) means executing the ancestor’s script first, then executing code in the descendant’s event script.

Overriding means ignoring the ancestor’s script and only executing the script in the descendant.

NoteNo overloaded events You cannot overload an event by defining an event with the same name but different arguments. Event names must be unique.

To select extending or overriding, open the script in the Script view and check or clear the Extend Ancestor Script item in the Edit or pop-up menu.





Copyright © 2004. Sybase Inc. All rights reserved. Passing arguments to functions and events

View this book as PDF