sander
sander

Reputation: 1654

How do I DISPLAY on multiple lines?

I'm trying to display the current time every second, but the current time shows up on only 1 row and it seems to delete the last result.

I tried doing it like this, but this only sets the width and height for the box that contains the information.

DISPLAY currentDate + currentTime FORMAT "x(50)" WITH 5 DOWN 5 col.

Here's what I would like:

enter image description here

Upvotes: 1

Views: 649

Answers (1)

Tom Bascom
Tom Bascom

Reputation: 14020

do while true:
  display now with 5 down.
  pause.
  down.
end.

The DOWN command forces the frame to move to the next iteration. Whether or not you need it depends on the nature of the block that the frame is scoped to. (DO blocks need it.)

Upvotes: 2

Related Questions