Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dumb question
Message
De
21/07/2000 08:29:55
Walter Meester
HoogkarspelPays-Bas
 
 
À
21/07/2000 08:02:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00395314
Message ID:
00395331
Vues:
17
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
Fil
Voir

Click here to load this message in the networking platform