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

Mike,

You can call program() in a loop to get the call stack for any method;
lnDepth = Program(-1)
FOR lnCnt = lnDepth TO 1
   DIMENSION laArray(lnCnt)
   laArray(lnCnt)= Program(lnCnt)
ENDFOR
* Now the array contains the calling stack backwards from 
* current to first program
Previous
Reply
Map
View

Click here to load this message in the networking platform