>>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
>
>What I want to know is the program name of the calling program not the currently running program. eg.
>I have a program name Myprog.prg which has the following code:
> DO myprog2
>
>In myprog2.prg, how will i know that the program that calls myprog2 is myprog1.
cCalledFrom = Program( Program(-1) - 1 )
BOb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only