Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Actual Line Number in the PRG
Message
 
 
To
15/03/2000 00:34:06
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00345536
Message ID:
00345906
Views:
13
>>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? :-)

The error was a Syntax error. But I only got it while testing under runtime [APP] on an other machine. I had been using this on y computer for weeks without problems. This was just a quick-and-dirty procedure to do some 1-shot DB data conversion from a legacy app. So I just did a quick-and-dirty APP so I could run it on another PC without tying my computer up for about 3 hours while it ran. The problem was I forgot to put SET DELETED ON at the beginning of the main PRG. So when it hit a deleted record with nothing but empty fields, the proc failed. Imaging that! So much for quick-and-dirty.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform