DataBasic Reference > Statements and Intrinsic Functions > P > PROMPT Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

PROMPT Statement (DataBasic) (m618703+prompt_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

PROMPT Statement

Selects the character used to prompt the user for input.

Syntax

PROMPT prompt-char

Syntax Elements

prompt-char is a character to be used as the input prompt character.

If prompt-char has more than one character, only the first character is used.

prompt-char can be a literal (enclosed in quotes) or a variable.

Comments

Once a PROMPT statement has been executed, it remains in effect until another PROMPT statement is issued.

If no PROMPT statement has been issued, the INPUT statement uses a question mark (?) as the default prompt character.

Examples

PROMPT "@"

Specifies that the character @ will be used as the prompt character for subsequent INPUT statements.

PROMPT 5*5

Selects the digit 2 as the prompt character because 5*5=25 and only the first character is used.

PROMPT A

Specifies that the current value of A will be used as the prompt character.

RealityV15.1 (MoTW) Revision 7Comment on this topic