Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell what called a method
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00840375
Message ID:
00840383
Views:
30
This message has been marked as a message which has helped to the initial question of the thread.
>Is there a way to tell what called a method in a form?

Howard,
Try:
program(program(-1)-1)
Program(-1) returns the current program stack level. If you substract 1 from that, you get the program/module that called it.

Note: This may be releatively useless information if a menu option called the current program. You may the 10 character random name that the menu generator creates.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform