Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell what called a method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00840375
Message ID:
00840383
Vues:
31
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform