Programming instructions

177
Intermec Fingerprint 6.13 – Programmer's Guide
17. REFERENCE LISTS, cont'd.
PROGRAMMING, cont'd:
Branching and Conditionals:
END IF Stmt Ending multiple IF...THEN...ELSE statements
FOR<nvar>=<nexp>TO<nexp>[STEP<nexp>) Stmt Creating a program loop
GOSUB<ncon>|<line label> Stmt Branch to subroutine
GOTO<ncon>|<line label> Stmt Unconditional branching
IF<nexp>[,][THEN]GOTO<ncon>|<line label>[ELSE<stmt>] Stmt Conditional branching
IF<nexp>[,]THEN<stmt>[ELSE<stmt> Stmt Conditional execution
IF<nexp>[,]THEN <stmt> ...[<stmt] [ELSE <stmt> ...[<stmt>]] ENDIF Stmt Conditional execution of multiple statements
NEXT[<nvar>] Stmt Creating a program loop
ON <nexp>GOSUB<ncon>|<line label>[,<ncon>|<line label>...] Stmt Cond. branching to one of many subroutines
ON <nexp>GOTO<ncon>|<line label>[,<ncon>|<line label>...] Stmt Conditional branching to one of several lines
RETURN[<ncon>|<line label>] Stmt Return from subroutine
WHILE<nexp><stmt>[...<stmt>]WEND Stmt Conditional execution of loop of statements
Arrays:
CSUM<ncon>,<svar>,<nvar> Stmt Calculate checksum of array of strings
DIM<<nvar>|<svar>>(<nexp>[,<nexp>...])...[,<<nvar>|<svar>>(nexp>[,<nexp>...])] Stmt Set array dimensions
SORT<<nvar>|<svar>>,<nexp>,<nexp>,<nexp> Stmt Sort a one-dimensional array
SPLIT(<sexp>,<sexp>,<nexp>) Func Split a string into an array
Clock/Calendar Facilities:
<svar>=DATE$[("F")] Var Read the date
<svar>=TIME$[("F")] Var Read the time
DATEADD$[(<sexp>,]<nexp>[,"F"]) Func Add days to a date
TIMEADD$[(<sexp>,]<nexp>[,"F"]) Func Add seconds to a time
DATEDIFF(<sexp>,<sexp>) Func Calculate difference between dates
TIMEDIFF(<sexp>,<sexp>) Func Calculate difference between times
FORMAT DATE$<sexp> Stmt Specify date format
FORMAT TIME$<sexp> Stmt Specify time format
NAME DATE$<nexp>,<sexp> Stmt Specify names of the months
NAME WEEKDAY$ Stmt Specify names of the weekdays
WEEKDAY(<sexp>) Func Return weekday of a date
WEEKDAY$(<sexp>) func Return name of the weekday for a date
WEEKNUMBER Func Return weeknumber for a date
TICKS Func Return time passed since startup
Error-handling:
ERL Func Error on line
ERR Func Error code
ON ERROR GOTO<ncon>|<line label> Stmt Branch at error
PRSTAT[(<nexp>)] Func Returns printer status or current X/Y position
RESUME[<<ncon>|<line label>|<NEXT>|<0>>] Stmt Resume program execution after error
SYSVAR(19) Array Set type of error message
TRON Stmt Enable tracing
TROFF Stmt Disable tracing
COMMUNICATION:
Communication Control:
BUSY[<nexp>] Stmt Send busy signal on communication channel
READY[<nexp>] Stmt Send ready signal on communication channel
ON LINE<nexp> Stmt SELECT signal high (Centronics)
OFF LINE<nexp> Stmt SELECT signal low (Centronics)
REDIRECT OUT[<sexp>] Stmt Redirect output data to file
SETSTDIO<nexp>[,<nexp>] Stmt Set standard I/O channels
SYSVAR(18) Array Set verbosity level
VERBON Stmt Verbosity on
VERBOFF Stmt Verbosity off
2. Instructions by Field of Application, cont'd.
Instruction Abbr. Type Purpose