Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method code lost
Message
 
À
09/09/1998 21:23:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00133980
Message ID:
00134922
Vues:
13
>>>I have a form class where I have some code in the load method. If I put code in the load method of a form based on this class I lose the original code. How can I prevent this?
>>>
>>>Thanks
>>
>>You're in 3.0b? So DODEFAULT() won't work since it was introduced in 5.0. You'll have to use the "::" scope operator.
>>Example: MyOriginalForm::Load()
>>
>>Jose
>
>Thanks for the reply Jose, I have used the the method that Barbara Paltiel told me about and it worked very well and is easy to follow.
>
>Thanks

John,

Barbara explained you how to create a hook and she was right in doing so. I have lots of them in my framework. But sometimes you must overwrite a method's code and that's the purpose of the scope operator.

José
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform