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

I admit that I have never used the SET COVERAGE TO and need to learn it. If you know where I can download Martina's CVP tool, please let me know.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform