>Hello All,
>
>Can any one tell me if there is a function or some other device I can use to determine what the current method executing is? I have an Error handling program inside a form class. When I use the Program() function all I get is the calling command do c:\myprogram.exe.
>
>Matt
If you're using VFP 6.0, you can get the depth of the call stack with PROGRAM(-1). You can then get the calling sequence by iterating from the highest number to the lowest (1), like this:
lnlast = PROGRAM(-1)
FOR lni = lnlast TO 1 STEP -1
? PROGRAM(lni)
NEXT
If you're using VFP 7.0, look at the ASTACKINFO() function.
George
Ubi caritas et amor, deus ibi est