QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Kernelpanic on October 21, 2020, 06:25:42 pm

Title: Question to LOCATE
Post by: Kernelpanic on October 21, 2020, 06:25:42 pm
Is it possible with "Locate" so, or similar, to determine the new position of the cursor?
LOCATE CSRLIN + 2, POS (0)
LOCATE (CSRLIN + 2), POS (0)

Or is that basically not possible?
Title: Re: Question to LOCATE
Post by: SMcNeill on October 21, 2020, 07:40:22 pm
Easiest answer to these type of questions is to just try them out and see for yourself.  Learn by doing and experimenting.  ;D
Title: Re: Question to LOCATE
Post by: Kernelpanic on October 21, 2020, 08:58:09 pm
Easiest answer to these type of questions is to just try them out and see for yourself.  Learn by doing and experimenting.  ;D

That I have do it - and . . .  have You an answer of the question?
Title: Re: Question to LOCATE
Post by: bplus on October 21, 2020, 09:58:46 pm
Code: QB64: [Select]
  1. LOCATE (CSRLIN + 8), POS(0) + 15
  2. PRINT "When I first started QB64, "
  3. LOCATE (CSRLIN + 2), POS(0) + 15
  4. PRINT "it took me a long time to locate CRSLIN and POS(0)."
  5. LOCATE (CSRLIN + 2), POS(0) + 15
  6. PRINT "Then, someone told me about: https://www.qb64.org/wiki "
  7.  
  8.  
Title: Re: Question to LOCATE
Post by: Kernelpanic on October 22, 2020, 03:32:34 pm
Thank you! ;)  Now it works, but "Locate (CSRLIN + 2, Pos (0)" didn't work for me. Ok.

Now I have a new problem. . .I am making a new thread.