The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Line Print
Message #1 Posted by Les Koller on 10 Nov 2013, 7:01 p.m.

I am writing a program and when I needed a blank line I used print(); kinda like in old basic. This clears the entire screen. How do I print 1 blank line?

      
Re: Line Print
Message #2 Posted by Mark Hardman on 10 Nov 2013, 8:55 p.m.,
in response to message #1 by Les Koller

PRINT(" ");
Seems to work.
            
Re: Line Print
Message #3 Posted by Michael de Estrada on 10 Nov 2013, 8:59 p.m.,
in response to message #2 by Mark Hardman

Print(); with no arguments clears the terminal. Print with anything in it will print a single line and the next Print statement will will do a CR (carriage return and line feed) and print on a new line.

Edited: 10 Nov 2013, 9:00 p.m.

                  
Re: Line Print
Message #4 Posted by Les Koller on 11 Nov 2013, 12:32 a.m.,
in response to message #3 by Michael de Estrada

That doesn't leave a blank line between though

                        
Re: Line Print
Message #5 Posted by Michael de Estrada on 11 Nov 2013, 12:41 a.m.,
in response to message #4 by Les Koller

Yes it does:

Print('1'); Print(" "); Print('2'):

prints:

1

2

Edited: 11 Nov 2013, 12:42 a.m.

            
Re: Line Print
Message #6 Posted by Les Koller on 11 Nov 2013, 12:33 a.m.,
in response to message #2 by Mark Hardman

When I saw this I knew it was right, but it doesn,t work for me.

                  
Re: Line Print
Message #7 Posted by Geoff Quickfall on 11 Nov 2013, 9:38 a.m.,
in response to message #6 by Les Koller

Tried the (" ") a while ago and it did not work for me so I resorted to placing lines between groups of print data with:

PRINT("----------");


[ Return to Index | Top of Index ]

Go back to the main exhibit hall