Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Current Method in Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00610437
Message ID:
00610453
Vues:
24
>Hello All,
>
>Can any one tell me if there is a function or some other device I can use to determine what the current method executing is? I have an Error handling program inside a form class. When I use the Program() function all I get is the calling command do c:\myprogram.exe.
>
>Matt

If you're using VFP 6.0, you can get the depth of the call stack with PROGRAM(-1). You can then get the calling sequence by iterating from the highest number to the lowest (1), like this:
lnlast = PROGRAM(-1)
FOR lni = lnlast TO 1 STEP -1
  ? PROGRAM(lni)
NEXT
If you're using VFP 7.0, look at the ASTACKINFO() function.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform