Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lineno() of calling program
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00391473
Message ID:
00391486
Vues:
10
>I'm still trying to hunt down the same error I posted about in the "system dump" thread. On further consideration, I realized I don't need all that information. What I really need is to know from what line in what program the current program was called.
>
>The reason for this is that the error is occuring in a small record locking routine, but the error is really coming from the code that calls the routine. Because the routine is in a gazillion places, I need to know specifically where this instance was called from.
>
>Thanks,
>
>Michelle

This won't tell you the exact lineno (as I said before, I can't find a way of doing this using VFP functionality), it will give you the program stack. Maybe that will help.
lnprglvl = program(-1)
for lxx = lnprglvl to 1 step -1
   ? program(lxx)
endfor
You could this to build an array or a string and save that to your error table.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform