[Ql-Users] Finding the line number in QPC2
Hi all I’m sorry about my previous message – I had forgotten to use plain text, and this appeared garbled. Hopefully, with any luck, this should now be transmitted correctly. Here is how the message should have been ... Sometimes my programs will stop with a nice friendly error message, giving me the line number where the error occurred and a short description of what went wrong. I can then list the program, test the values of variables, and try to fathom out why my code is not doing what it should. It can also be helpful to know from what line number the current procedure/function was called from. This can be found with ... foo = BASIC_L(60)-24 : Lnum = BASIC_W%(foo+18). Additionally, there is a short routine in the Turbo Demos file called How_COME which lists the call hierarchies up to the current point. However, all of this is only available under QDOS. What I was wondering is can something like this be done in QPC2? Michael ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] Finding the line number in QPC2
I'm surprised that no one has responded to this yet. Both QDOS and SMSQ/E (which is what QPC2 does), have the same look and feel to the operating system and almost all SuperBASIC code will work on both OS's. The Turbo compiler and toolkit work on both OS with no issues (that I am aware of). Tim Swenson ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[Ql-Users] Finding the line number in QPC2
Hi all Sometimes my programs will stop with a nice friendly error message, giving me the line number where the error occurred and a short description of what went wrong. I can then list the program, test the values of variables, and try to fathom out why my code is not doing what it should. It can also be helpful to know from what line number the current procedure/function was called from. This can be found with ... foo = BASIC_L(60)-24 : Lnum = BASIC_W%(foo+18). Additionally, there is a short routine in the Turbo Demos file called How_COME which lists the call hierarchies up to the current point. However, all of this is only available under QDOS. What I was wondering is can something like this be done in QPC2? Michael ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm