Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Command Line Interpreter
#11
If you use LOCATE to position your cursor, and use a semi-colon after the print statement, it will not scroll up. Example:
Code:
FOR i = 1 TO 50
' Place cursor on the right line
  LOCATE (i-1) MOD 25 + 1, 1

  PRINT USING "i = ##"; i;

' Pause program when page full.  Wait for key press to continue
  IF i MOD 25 = 0 THEN
    PRINT "  (Press any key to continue)";
    SLEEP
  END IF
NEXT
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)

For God so loved the world, that He gave His only begotten Son,
that whoever believes in Him should not perish, but have eternal life.(John 3:16)
Reply
#12
Very clever example, SCM.
*****
Reply
#13
Thanks Moneo.
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)

For God so loved the world, that He gave His only begotten Son,
that whoever believes in Him should not perish, but have eternal life.(John 3:16)
Reply
#14
Sorry Mike, I cant find the prog. My system has crashed more than 3 times, recently. I have lost many files due to it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)