Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method() that resembles Program()...
Message
From
14/07/1999 12:59:44
 
 
To
14/07/1999 12:43:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00241299
Message ID:
00241347
Views:
13
>Hi Ed,
>
>Did you catch my reply to this, I meant to say...
>
>Is there a function that resembles Program() in that it can return currently running methos as well as what method called the current method, ect. I know you can watch the call stack, but I was curius.
>

If you fire PROGRAM()or SYS(16) from within a method call at least it returns CLASSNAME.METHODNAME; I'd assume that applied all the way up the call stack, since the code in my default error handler uses that approach to dump the callstack to a log when an unhandled error occurs.

>
>>you can write your own from PROGRAM() or SYS(16), by simply watching the return from (Program(n)) starting it arbitrarily high, and then watching the length of the return; PROG(n) for n > callstack depth returns an empty string.
>
>Does this still aplly to my question? As I thought I remebered Program() couldn't determine methods?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform