Asif
Events cannot be overloaded.
Events fire from ancestor on down, functions fire on the lowest level
of the inheritance hierarchy for which they are found. So if you have
object A and B and B inherits from A, A has event X and function Y and
B has event X and function Y. Then when event X occurs on B, it runs
through the code of event X on A first (by default, and this can be
changed). If function Y is callled on B, function Y on A does not
execute (unless you explicitly tell it to). If B didn't have function
Y, then it would be run on A.
Events fail silently, functions do not. This applies to dynamic calls
using the DYNAMIC keyword. This allows you to make calls to objects
that are resolved at runtime versus compile time. If you set up to
trigger or post an event that at run time is found not to exist on the
intended object, it will fail without error, if you do this with a
function you will get a runtime error.
Jim O'Neil
Sybase Technical Support
You can code processing in an event but it is recommended to put it in a
function and call it from an event.
--
Dawn T Brown Eyes (TeamSybase)
Asif Anwar <anwar...@netscape.net> wrote in article
<07riC5T3$GA....@forums.sybase.com>...
Edo Papai
epa...@softip.sk
Jim O'Neil [Sybase] wrote in message
<3953e312...@forums.powersoft.com>...