Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Name of method I'm in?
Message
De
06/11/2001 18:08:00
 
 
À
06/11/2001 17:50:13
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00578270
Message ID:
00578284
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Is there any way to determine the name of the method I'm in at runtime?
>
>TIA
>
>John

PROGRAM()

In a class method, program() returns "CLASS.METHOD" - i.e., name of class + "." + name of method

For just the method:
lcProgram = PROGRAM()
lcProgram = Substr(lcProgram, At(".", lcProgram)+1)
For more detail (exact vcx, prg, etc.), use SYS(16)

HTH
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform