Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In what class am I?
Message
From
10/11/2001 11:57:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/11/2001 15:29:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00578989
Message ID:
00580155
Views:
23
>>It's the class of the current object, but the code you see in the trace window is not necessarily in that class. It may come from the parent class, grandparent class etc. VFP knows where it comes from, because it unmistakenly takes you there when you choose Debug/Fix, or shows it in the PEM window while editing a class. I may like to know that right away while debugging.
>
>There must be some misunderstanding it.
>
>When I put this expression in the Trace Window, I got the name of the class which was, at that moment, executing - which was a parent or grandparent of the current form.

Just tried it (keeping This.class in watch window) in VFP7 - and I had a break on dodefault(). Before executing that line, it showed the class of the object, fine. While executing the parent code, it didn't change the class - which is what I expected, because This is still the same object, and it can't change the class on the fly. I think this is OK, but still I'd need the information on where does this code come from, without having to debug/fix to get it. It could be an option to echo the exact "class .... of (vcx) method (object.method)" in the DebugOut window. A FoxWish, eh?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform