Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Link between Method window and object
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Link between Method window and object
Miscellaneous
Thread ID:
00309912
Message ID:
00309912
Views:
59
Hi,

Has anybody an idea how I could get an object reference to an object that is currently edited in a method window?

So far I've found three methods, but none is really satisfying:

a) Guessing; that's how SuperClass works. It gets the title of the Method window to determine the object name. Then uses ASELOBJ() to find the object. If the current object has a different name, it searches the entire object hierarchy of the current class.

Drawbacks: It doesn't work when the edit window belongs to a different Class Designer and it doesn't work when the current class contains multiple objects with the same name. You can work aorund the first issue by using the Forms collection, but the second breaks this solution.

b) inserting a breakpoint via CTRL+F10, K. The breakpoint contains detailed information in the FOXUSER table.

Drawbacks: The Debugger flickers, and the FOXUSER record is not updated before the Debugger is closed.

c) inserting a object reference via CTRL+F10, J, ENTER. This would at least tell you on which level the object is, and by inserting all references, you can determine, where the object is located.

Drawbacks: It takes a lot of time to parse the entire object list and the Insert Object dialog would keep popping up.


Any other ideas?

Christof
--
Christof
Next
Reply
Map
View

Click here to load this message in the networking platform