17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

INPUT (IP)<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for receiving input data via the standard IN channel during<br />

the execution of a program.<br />

Syntax INPUT|IP[][,...]<br />

is an optional prompt string, followed by a semicolon or<br />

comma.<br />

are variables to which the input data will be assigned.<br />

Remarks For information on standard I/O channel, see SETSTDIO statement. By<br />

default, "uart1:" is the standard I/O channel.<br />

During the execution of a program, an INPUT statement will interrupt the<br />

execution. A question mark and/or a prompt will be displayed on the screen<br />

of the host to indicate that the program is expecting additional data to be<br />

entered. The prompt can be used to tell the operator what type of data he or<br />

she is expected to enter.<br />

The prompt will be appended by a question mark if a semicolon (;) is entered<br />

after the prompt string. If a comma (,) is used in that position, the printing of<br />

the question mark will be suppressed.<br />

If a prompt is not used, the question mark will always be displayed.<br />

Do not enter any comma or semicolon directly after the keyword, only after<br />

the prompt, or in order to separate variables.<br />

The input data should be assigned to one or several variables. Each item of<br />

data should be separated from next item by a comma. The number of data<br />

items entered must correspond to the number of variables in the list, or else<br />

an error condition will occur. The variables may be any mix of string variables<br />

and numeric variables, but the type of input data must agree with the type of<br />

the variable, to which the data is assigned.<br />

Input can also be done directly to the system variables TIME$, DATE$, and<br />

SYSVAR.<br />

The maximum number of characters that can be read using an INPUT<br />

statement is 300 characters.<br />

Note that INPUT filters out any incoming ASCII 00 dec. characters (NUL).<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 108

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

Saved successfully!

Ooh no, something went wrong!