Hi > since there seems to be no way to get at this with Peek and Poke, I've > made a small SBasic extension to tget the value on the return stack, > called RET_STK and RET_STK2:
> You can download this extension from www.wlenerz.com/QLStuff I’ve tried this. From inside a function it prints/returns the line number from where it was called, and inside a procedure either the same or the next line number, depending on whether there is any more code on the calling line. Thanks very much for this. This is just what I wanted and is a useful addition to my debugging tools. Michael _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm