Author Topic: Question to LOCATE  (Read 2794 times)

0 Members and 1 Guest are viewing this topic.

Offline Kernelpanic

  • Newbie
  • Posts: 94
    • View Profile
Question to LOCATE
« 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?
Mark Twain
"Als wir das Ziel endgültig aus den Augen verloren hatten, verdoppelten wir unsere Anstrengungen."
„Having lost sight of our goals, we redoubled our efforts.“

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Question to LOCATE
« Reply #1 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
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Kernelpanic

  • Newbie
  • Posts: 94
    • View Profile
Re: Question to LOCATE
« Reply #2 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?
Mark Twain
"Als wir das Ziel endgültig aus den Augen verloren hatten, verdoppelten wir unsere Anstrengungen."
„Having lost sight of our goals, we redoubled our efforts.“

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Question to LOCATE
« Reply #3 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.  

Offline Kernelpanic

  • Newbie
  • Posts: 94
    • View Profile
Re: Question to LOCATE
« Reply #4 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.
Mark Twain
"Als wir das Ziel endgültig aus den Augen verloren hatten, verdoppelten wir unsere Anstrengungen."
„Having lost sight of our goals, we redoubled our efforts.“