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.

PRINT (?)<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for printing data to the standard OUT channel.<br />

Syntax PRINT|?[[...][;]]<br />

are string or numeric expressions, which will be printed to the<br />

standard OUT channel.<br />

Remarks If no expressions are specified after the PRINT statement, it will yield a blank<br />

line. If one or more expressions are listed, the expression(s) will be processed<br />

and the resulting values will be presented on standard OUT channel (see<br />

Do not confuse this<br />

statement with the<br />

PRINTFEED statement.<br />

SETSTDIO statement), e.g. usually on the screen of the host. The shorthand<br />

form of PRINT is a question mark (?).<br />

Each line is divided into zones of 10 character positions each. These zones<br />

can be used for positioning the values:<br />

•A comma sign (,) between the expressions causes next value to be printed<br />

at the beginning of next zone.<br />

•A semicolon sign (;) between the expressions causes next value to be<br />

printed immediately after the last value.<br />

•A plus sign (+) between two string expressions also causes next value to<br />

be printed immediately after the last value. (Plus signs cannot be used<br />

between numeric expressions).<br />

• If the list of expressions is terminated by a semicolon, the next PRINT<br />

statement will be added on the same line. Otherwise, a carriage return is<br />

performed at the end of the line. If the printed line is wider than the screen,<br />

the software will automatically wrap to a new line and go on printing.<br />

Printed numbers are always followed by a space character.<br />

Printed negative numbers are preceded by a minus sign (-).<br />

Example 10 LET X%=10<br />

20 LET A$="A"<br />

30 PRINT X%;X%+1,X%+5;X%-25<br />

40 PRINT A$+A$;A$,A$<br />

50 PRINT X%;<br />

60 ? "PIECES"<br />

RUN<br />

10 11 15 -15<br />

AAA A<br />

10 PIECES<br />

yields:<br />

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

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

Saved successfully!

Ooh no, something went wrong!