Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding dodefault()
Message
From
15/12/2018 21:19:11
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01664512
Message ID:
01664521
Views:
39
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform