Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Called by other program or has been run standalone
Message
From
05/11/1999 11:42:21
 
 
To
05/11/1999 11:38:34
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00287293
Message ID:
00287580
Views:
19
>>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
Map
View

Click here to load this message in the networking platform