11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PROMPT<br />

Syntax<br />

PROMPT str.expr<br />

Description<br />

The <strong>UniBasic</strong> PROMPT command sets the prompt displayed by the INPUT<br />

command to a specified single-byte character. If str.expr is longer than one character,<br />

UniData uses the first character as the prompt. You cannot set the prompt to a<br />

multibyte character.<br />

Data received from a DATA statement displays after the prompt.<br />

If you want to suppress the default prompt character, set the prompt to an empty<br />

string. The default prompt character is the question mark.<br />

Tip: Setting the prompt to an empty string also suppresses display of input from a<br />

DATA statement on the terminal screen. For example:<br />

PROMPT ""<br />

DATA "mypassword"<br />

INPUT PASSWD<br />

will not echo “mypassword” to the terminal screen. The PROMPT statement must<br />

precede the DATA statement.<br />

Data input from the keyboard will still echo on the display terminal.<br />

When you want to display text on the screen and have the cursor remain at the end of<br />

the displayed text awaiting user input, place a colon at the end of the PRINT or<br />

DISPLAY statement.<br />

1-589 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!