Posted by Stephen Auerbach on May 17, 2005 at 13:43:24:
In Reply to: Re: CurPos posted by Barbara Brazil on May 17, 2005 at 11:41:26:
Thank you for pointing out that CurPos needs an INPUT. This convoluted code does what I want - positions the cursor without my having to count.
Print @(0,3);'Last line of my prompt ';(TM)
Print (FT)
Input ""
A$ = CURPOS$ ! Contents of A$ will be @YYXX@
ROW = HEXDEC(SUB(A$,1,1)) ! Row value (decimal)
COL = HEXDEC(SUB(A$,2,1)) - 1 ! Column value (decimal)
Input @(COL,ROW),AN$