Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving current line of code in a module
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00360934
Message ID:
00360935
Vues:
10
>Hi All,
>Is there a way to programmtically retrieve the current line of code, given a program? For example, if I have a procedure or class method that is called several times from a module, how can I determine what line of code launched it?
>
>I can't pass the value becuause the procedure is an ASSIGN method and AFAIK, it only accepts one parameter. I can get the program that called it by using Program(program(-1)-1) but I want the line number or the actual line of code that initiated the call.
>
>Any ideas?

Larry,

Interesting problem. Could you explain a little more about why you need to know this? It sounds like it may be an external coupling problem and there may be another approach to accomplish the ultimate goal.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform