11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Each item is separated by tabs as the result of the comma separation character. A<br />

colon causes all data items to be concatenated.<br />

The following program demonstrates the use of the colon at the end of the PRINT<br />

statement to suppress the line feed issued by <strong>UniBasic</strong> at the end of displayed text.<br />

The first PRINT statement does not end in a colon. Therefore, <strong>UniBasic</strong> issues a<br />

carriage return and prints a question mark (the default prompt character). The second<br />

PRINT statement ends in a colon. In this case, <strong>UniBasic</strong> displays the default prompt<br />

character and waits on the same line with the PRINT statement.<br />

PRINT "Enter character to display"<br />

INPUT X<br />

PRINT "The character you entered was(1): ":X<br />

PRINT "Enter character to display":<br />

INPUT X<br />

PRINT "The character you entered was(2): ":X<br />

This program produces the following output (with input from the<br />

user):<br />

Enter character to display<br />

?*<br />

The character you entered was(1): *<br />

Enter character to display?#<br />

The character you entered was(2): #<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

@, CRT, GETPTR, INPUTERR, PRINTER, PRINTER CLOSE<br />

UniData<br />

SETPTR – For information, see the UniData <strong>Commands</strong> <strong>Reference</strong>.<br />

PRINT 1-576

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!