Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Actual Line Number in the PRG
Message
From
15/03/2000 00:34:06
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00345536
Message ID:
00345700
Views:
16
>When my error routine returns the line number of the offending line of code, how do I know what line to go to in the PRG?

It is the value returned from LineNo(). LineNo() is dead on, AFAIK, and also returns the Line Number for the PRG, not the procedure or function running, which is what you want (its how the Modify Command window shows it).

>I also can not get message[] or message[1] to return the actual code.

I get Message() to return the right stuff, I think, but trying to get the Code with Message(1) isn't all that great.

>This is one b*tch of an error because I only get it in runtime so the debugger is not available. I hate when this happens.

What is it, unless you want to get it alone? :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform