Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding dodefault()
Message
De
15/12/2018 21:19:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01664512
Message ID:
01664521
Vues:
40
>Hi came across the following situation:
>
>Say you have the following:
>BASE_FORM that has some code in the LOAD method.
>You create a child form CHILD_FORM based on the BASE_FORM. CHILD_FORM Load method has some code but no DODEFAULT(). Still, the method BASE_FORM.LOAD() fires in the CHILD_FORM.LOAD().
>
>Now say you have a slightly different situation:
>BASE_FORM has some code in the LOAD method.
>You create a child form CHILD_FORM which has no code in the LOAD method.
>You create a GRAND_CHILD_FORM based on the CHILD_FORM. The GRAND_CHILD_FORM.LOAD has some code. The GRAND_CHILD_FORM.LOAD method does not fire the BASE_FORM.LOAD() code. It fire only if you have DODEFAULT() in the GRAND_CHILD_FORM.LOAD().
>
>Why?
>
>TIA

SET COVERAGE TO output.log

Then use Martina Jindrova's CVP tool to load the .log file, then export with sources, and you'll see the full program trace log instruction by instruction. You'll be able to see the order of events, which code caused it to return without descending into all levels, etc.

The most helpful tool I've found for finding issues in code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform