Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name of method I'm in?
Message
From
06/11/2001 18:08:00
 
 
To
06/11/2001 17:50:13
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00578270
Message ID:
00578284
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform