Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving current line of code in a module
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00360934
Message ID:
00360935
Views:
9
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform