17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IMMEDIATE ON/OFF<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for enabling or disabling the immediate mode of <strong>Intermec</strong><br />

Fingerprint in connection with program editing without line numbers.<br />

Syntax IMMEDIATE ON|OFF<br />

Remarks Before starting to write a program without line numbers, the immediate mode<br />

must be disabled by means of an IMMEDIATE OFF statement. If not, each<br />

line will be executed immediately.<br />

After an IMMEDIATE OFF statement, program lines can be entered without<br />

any leading line numbers. References between lines are done by means of<br />

“line labels”, which are called in GOTO or GOSUB and related statements.<br />

A line label is a name followed by a colon (:). The label must not interfere with<br />

any keywords or start with a digit. When a line is labelled, the line must start<br />

with the line label. When a line label is used as a reference to another line, e.g.<br />

within a GOTO statement, the colon should be omitted.<br />

Before the program is RUN, it should be appended by a IMMEDIATE ON<br />

statement. At the execution of this statement, the program lines will be<br />

numbered automatically in ten-step incremental order, starting with the first<br />

line, i.e. 10-20-30-40-50.... The line numbers will not appear on the screen<br />

before the program is LISTed, LOADed, or MERGEd. Line labels will not<br />

be converted to line numbers.<br />

Do not issue a RUN statement before the IMMEDIATE ON statement, or an<br />

error will occur.<br />

Example A program can be written without using any line numbers, as illustrated by<br />

this short example. QQQ is used as a line label:<br />

IMMEDIATE OFF<br />

Ok<br />

PRINT "LINE 1"<br />

GOSUB QQQ<br />

END<br />

QQQ: PRINT "LINE 2"<br />

RETURN<br />

IMMEDIATE ON<br />

Ok<br />

RUN<br />

LINE 1<br />

LINE 2<br />

Ok<br />

yields:<br />

yields:<br />

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

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

Saved successfully!

Ooh no, something went wrong!