Information générale
Titre:
Newbie question about methods
Hi All,
I feel stupid asking this question, but I am just learning VFP. It seems that most methods for custom controls are stored in the class library file. However some samples which I have seen lately seem to handle some methods in a different way. Some of the methods for some specific controls are defined only after the control is placed on a form. This kind of method is apparently not part of the class definition. I am confused.
When you modify a method of a control after it has been placed on a form, where is the code stored? What are the reasons why you would want to use this kind of a method rather than including the method in the class definition? With this approach, it almost seems like the form becomes very much like a class definition.
Please help me understand.
TIA
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