Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method() that resembles Program()...
Message
 
À
14/07/1999 11:55:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00241299
Message ID:
00241318
Vues:
17
>Whoops lets try that again...
>
>Is there a function that resembles Program() in that it can return currently running method as well as what method called the current method, ect. I know you can watch the call stack, but I was curius.

Mike,

You can call program() in a loop to get the call stack for any method;
lnDepth = Program(-1)
FOR lnCnt = lnDepth TO 1
   DIMENSION laArray(lnCnt)
   laArray(lnCnt)= Program(lnCnt)
ENDFOR
* Now the array contains the calling stack backwards from 
* current to first program
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform