# INPUT

Syntax:

INPUT n "message"

INPUT(r,c) n "message"

Displays message on line 23, waits for user to respond and puts response into dummy variable n. (The response holder MUST be a dummy variable.)

The "message" is an expression. Any part of it that is a literal string must be inside quotes.

Version Ref: 3.x

Description:

Prompts for user input.

INPUTPW(r,c) n "message"

Standard input statement.

Then: input b "message to user"

You can build a literal string, or use any field or expression as the message portion of an INPUT statement.

Then: input b "message" < n & m

or:

Then: mm="Does everything look okay? (y/n)"
Then: input q mm

You may define the variable which holds the response at the same time an INPUT question is asked. (Like any other filePro variable, this dummy field should only be defined once (anywhere) on a table. Subsequent or previous uses of a defined variable should not be defined again.

Then: input q(1,yesno) "Do you want to continue?"

INPUT questions can be placed at a particular point on the screen:

Then: input(r,c) b "message"

where "r" is the row and "c" is the column. The row and column entries are expressions.

You must include a message in the INPUT statement. For a blank message, use:

Then: input n ""

Note: The response can only be captured in dummy fields. Transfer the received values to real fields if they are to be stored on the record.