Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method() that resembles Program()...
Message
From
14/07/1999 12:27:33
 
 
To
14/07/1999 11:53:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00241299
Message ID:
00241323
Views:
12
>Is there a function that resembles Program() in that it can return currently running Program() as well as who called the current program, ect. I know you can watch the call stack, but I was curius.

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.
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
Next
Reply
Map
View

Click here to load this message in the networking platform