Walter Meester
HoogkarspelPays-Bas
Kevin,
A hook is an empty routine (method or function) which can be overruled (with code in it) in a class or subprogram.
For example if you make a basic formclass you might provide a BEFORESAVE method, which is called in the SAVERECORD method of your class. At default there is no code in it.
But when you create a form based on this class or subclass it, you might want to add some code to the BEFORESAVE method. Such an empty method is called a HOOK. It's not difficult to see the paralells between events and hooks.
Walter,
>I may be being completely dumb here, but can someone explain to me what a HOOK actually is?
>
>Thanks very much
>Kev
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement