>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement