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), <strong>cont'd</strong>.<br />

Chapter 2 Program Instructions<br />

Examples This example shows input to one numeric variable and one string variable:<br />

10 INPUT "ADDRESS";A%,B$<br />

20 PRINT A%;" ";B$<br />

30 IF A% > 0 THEN GOTO 50<br />

40 GOTO 10<br />

50<br />

RUN<br />

END<br />

yields:<br />

ADDRESS?<br />

When the prompt “ADDRESS?” appears on the screen, you can type the<br />

input data on the terminal's keyboard, e.g.<br />

999, HILL STREET<br />

Note the separating comma.<br />

If the input text data contains a comma, which shall be printed, you must<br />

enclose the input data with double quotation marks ("...."), e.g.:<br />

999, "HILL STREET, HILLSBOROUGH"<br />

Numeric input data must not include any decimal points.<br />

This example shows how the date can be set directly from the keyboard of the<br />

host:<br />

INPUT "Enter date: ",DATE$<br />

yields:<br />

Enter date:<br />

When the prompt “Enter date:” appears on the screen of the host, you can<br />

type the date as a six-digit combination of year, month and day (see DATE$<br />

variable). Time can also be set using the same method.<br />

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

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

Saved successfully!

Ooh no, something went wrong!