Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name of method I'm in?
Message
From
06/11/2001 18:15:40
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
 
 
To
06/11/2001 18:08:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00578270
Message ID:
00578288
Views:
18
Thanks Trey.

John

>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform