Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find which control called form method?
Message
 
 
To
16/04/2011 12:28:46
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01507585
Message ID:
01507590
Views:
44
I thought about passing a parameter referencing the object but I prefer not to change the existing code of how method is being called. Unless I have no other way. But I will look into the program() and astackinfo(). Thank you for your help.

>You could use program() or astackinfo(). The cleanest way would be to pass "this" as a parameter.
>
>>I have a method on the form which is being called from InteractiveChange method of many controls. I need to determine (in this method) which control called it. Is it possible and how to determine which control called this method?
>>
>>TIA.
"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
Reply
Map
View

Click here to load this message in the networking platform