Richard, take a look at PROGRAM() and SYS(16) functions.
>Hi,
>Is there a way that you can tell when what is the calling PRG or the parent PRG when you run the program
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison