Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>I can't remember the syntxa to call the base class method code so as to skip the local code that is in the method.
>>
>>My form has a FormSave() method that is inherited from the base class. I have added some local code to it, but I want to call the base class method from another place in the form, and in that case, I do not want to just call Thisform.FormSave() becuase I do not want the local code to run.
>>
>>Is it Thiform::FormSave()
>
>It's wrong way to go about it. Move the code in the base class to new method, say FormSaveWhatever(), and call it from FormSave(). After that you can call either method in your subclasses.
Indeed.
Thanks,
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