Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Knowing Calling Method
Message
De
23/08/2000 12:04:04
 
 
À
23/08/2000 11:58:02
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00408249
Message ID:
00408301
Vues:
15
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform