Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can anyone explain DoDefault?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00940368
Message ID:
00940387
Vues:
15
Just to add.
If the parent method contains parameters, you will have to pass the parameters yourself.
DODEFAULT(some_parameter1, some_parameter2)
The parameters will not be passed automatically if you place there only
DODEFAULT()
>When you place code in a method of an object, you are overriding the code of the parent's method. If you want the code of the parent to run, you can use DODEFAULT(). Try putting something like this in a subclassed method and see what happens;
>
>
>** Some code in a method
>Wait wind "hello world"
>
>set step on
>
>dodefault()  && This will take you to the method in the parent
>
>
>
>
>
>>I have seen this in articles, and coding all over the place. I have no idea what it means, when I should or shouldn't use it, or if it is even required.
>>
>>TIA
>>
>>DJ Hunt
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform