Intermec PB51 Fingerprint Developer's Guide (old) - Page 112
Creating an Error File, Using the Files in a LAYOUT Statement
View all Intermec PB51 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 112 highlights
Chapter 6 - Designing Bar Code Labels 10 DIM QERR%(28) 20 QERR%(0)=0 ..... 190 IF QERR%(1)=0 THEN GOTO 260 200 PRINT "-ERROR- LAYOUT 1" 210 I%=0 220 IF QERR%(I%)=0 THEN GOTO 260 230 PRINT "ERROR ";QERR%(I%+1);" in record" ;QERR%(I%) 240 I%=I%+2 250 GOTO 220 260 PRINTFEED Creating an Error File Error files require a little more programming to handle the error message, for example: 220 OPEN "ERRORS.DAT" FOR INPUT AS 10 230 IF EOF(10) THEN GOTO 280 ELSE GOTO 240 240 FOR A%=1 TO 28 250 INPUT #10, A$ 260 PRINT A$ 270 NEXT A% 280 PRINTFEED Note: The loop in line 240 must be large enough to accommodate all possible errors. Using the Files in a LAYOUT Statement Now, you have all the files you need to issue a LAYOUT statement. This statement combines the layout file, the logotype file, the data file/array, and the error file/array into a printable image. Depending on whether you have selected to use data and error files or arrays, the statement will have a somewhat different syntax: For files: LAYOUT F, , ,, For arrays: LAYOUT ,,, Note: You cannot omit any file or array, since the syntax requires a file name or array designation in each position. For example, you must create an empty logotype file if your design does not use a logotype field. 96 Intermec Fingerprint Developer's Guide