beautypg.com

Solving program errors – Printronix ThermaLine Series User Manual

Page 317

background image

6–49

Form Examples and Exercises

Solving Program Errors

If you make an error in the program to create a form or an element in the

form, a coded error message and program line containing the error will print

when the form is executed. These error codes are defined in the “Error

Codes” chapter.

To solve program errors, perform the following steps:

1.

Locate the error message in the listing provided in the “Error Codes”

chapter for a description of the error.

2.

Analyze the related portion of the program to find the error.

3.

Correct the error and reprint the file containing the program.

4.

If the error persists or you cannot locate it in the program, use the debug

parameter [/] in the Create command as described in the Error Codes

chapter. Print the file with the IGP/PGL program. The debug parameter

lists the program, line by line (including the error on the line where the

error occurs), followed by the error–free sections of the form. Correct

the error and print the file again. When the error has been corrected,

delete the debug parameter.

For example, assume you made two errors in the Box and Corner commands

input in steps 3 and 4 of the Form and Bar Code Example on page 6–19.

Using the debug parameter in the Create command produces the following

sample listing:

/PRACTICE

BOX

2;35;16:53;61

*** ERROR 24 : BOX format or delimiter error in input parameters

STOP

CORNER

3;300;13;57;64;5;7

*** ERROR 35 : CORNER vertical length VL out of bounds

*** ERROR 31 : CORNER starting row SR out of bounds

*** ERROR 39 : CORNER starting row SR > ending row ER

STOP

END