Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrolling Output That Exceeds Screen Size
#14
(04-08-2024, 09:28 PM)Tim Wrote:  For example, one of the example programs counts to 100 (from whatever starting point you give it); I would like to be able to see all of the output from it (as well as the results of my own hacks, which I do in order to make sure I can replicate and understand creatively what the lesson(s) teach).
In many cases one do not need to scroll, sleep, etc. You display the output side by side.
My recommendation: Use Option _Explicit right from the start so that variables must be declared. This saves you a lot of trouble searching for "inexplicable" errors.

PS: Change Print in Print Using "###"; count
Code: (Select All)

'Anzeige nebeneinander - 9. April 2024

Screen _NewImage(700, 600, 32)

Option _Explicit

Dim As Integer count, spalte, zeilenAnzahl

Locate 2, 3

Print "This program will count to 100 from the number you supply."
Locate 3, 3
Input "Enter the number to start counting from > ", count

count = 0
spalte = 3 'Row
zeilenAnzahl = 20 'Column

Locate 5, spalte
While count < 100
  count = count + 1
  Print count
  Locate CsrLin, spalte
  If count Mod zeilenAnzahl = 0 Then
    spalte = spalte + 6
    Locate 5, spalte
  End If
Wend

End

[Image: Ausgabe-nebeneinander2024-04-09.jpg]
Reply


Messages In This Thread
RE: Scrolling Output That Exceeds Screen Size - by Kernelpanic - 04-09-2024, 06:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Font Size in Threads Dimster 5 376 12-12-2025, 04:49 PM
Last Post: Dimster
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,080 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 226 10-26-2025, 06:58 PM
Last Post: madscijr
  Make IDE $Console:Only output readably large dakra137 1 539 10-10-2025, 12:21 PM
Last Post: hsiangch_ong
  Inputting output from other languages Helium5793 8 1,290 05-30-2025, 12:30 PM
Last Post: Helium5793

Forum Jump:


Users browsing this thread: 1 Guest(s)