Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Knowing Calling Method
Message
From
23/08/2000 12:04:04
 
 
To
23/08/2000 11:58:02
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00408249
Message ID:
00408301
Views:
13
>OK, thanks i got it with sys(16,2)

Be careful with this.
SYS(16,2) will always return the 2nd program in the callstack, which may not necessarily be the program that called the current program.

Also, I was wrong, so I may have misled you. Terribly sorry.
SYS(16,-1) returns the first program in the call stack.
Use SYS(16,PROGRAM(-1)-1) to get the calling program, regardless of the call stack position.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform