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:
00840385
Views:
27
>>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.

Great! Thanks for the information.
Previous
Reply
Map
View

Click here to load this message in the networking platform