Creating A Script File

Script Error Trapping Functions

The integrity of a script program can be checked by using the onerror, errorline and errorcode commands. These enable you to quickly find any syntax errors within the program. The following program lines provide an example of their use:

var %integer1, $string1 onerror gosub errorhandler:

(put your program here)

** Error Handler ** errorhandler: errorline string1 errorcode integer1

wrt "Error: ", integer1, " - ", string1, "_r_n" return

ONERROR

Syntax: ONERROR <action>

This command will perform the specified action when it encounters an error while the script program is running, where <action> can be one of the following:

REPORT

will display a message box indicating the type of error and the

 

program line that caused it.

IGNORE

will ignore any errors encountered in the program.

GOTO <label>

will cause the program to go to the line with the specified label

 

when an error is encountered.

GOSUB <label> will cause the program to go to the line with the specified label when an error is encountered and then return to the line fol- lowing the error.

ERRORLINE

Syntax: ERRORLINE <variable>

This command will return the line number of the last error.

ERRORCODE

Syntax: ERRORCODE <variable>

This command specifies the type of error code that will be returned when an error is encountered. Specifying an integer variable will return an error ID number, while a string variable will return an error message. The following list shows the ID codes and error messages that can be displayed, and their meanings.

12-71

Page 275
Image 275
Xerox 07W & -11W, 05W manual Script Error Trapping Functions, 12-71, Var %integer1, $string1 onerror gosub errorhandler

07W & -11W, 05W specifications

Xerox has long been a leader in the field of imaging and printing technology, and its innovative product lines consistently push the boundaries of performance and functionality. Among these products, the Xerox 05W, 07W, and 11W series stand out as versatile multifunction printers that cater to the needs of various businesses.

The Xerox 05W series is designed with small to medium-sized businesses in mind. It boasts a compact footprint without sacrificing performance. One of the key features of the 05W is its high-resolution printing capability, delivering crisp, vibrant documents at impressive speeds. The series supports a variety of media types and sizes, making it ideal for diverse office environments. Additionally, the 05W incorporates user-friendly controls and an intuitive interface, allowing employees to navigate its functions with ease.

Moving up the range, the Xerox 07W series offers enhanced features geared towards organizations that require increased productivity. This series includes advanced scanning capabilities, allowing users to digitize documents quickly and efficiently. The 07W is compatible with a range of cloud services, facilitating seamless document sharing and collaboration. Enhanced security features, such as secure print and user authentication, make it a suitable choice for businesses that prioritize data protection.

At the top of the lineup, the Xerox 11W series is a powerhouse, designed for high-volume printing environments. It combines speed with quality, boasting robust performance metrics that can handle demanding workflows. The 11W series incorporates cutting-edge technologies such as automatic duplexing, which saves time and paper, and advanced finishing options, providing users with professional-quality documents. The series also supports mobile printing solutions, enabling users to print directly from their smartphones or tablets.

All three series – 05W, 07W, and 11W – share a commitment to sustainability, employing energy-efficient technologies that reduce environmental impact without compromising performance. They also come equipped with comprehensive support options, ensuring customers have access to expert assistance when needed.

In summary, the Xerox 05W, 07W, and 11W series cater to different business needs, ranging from compact functionality to robust performance. They incorporate advanced technologies and key features that enhance productivity, security, and sustainability, making them suitable for a wide array of professional environments. With their reliability and versatility, these printers continue to uphold Xerox's legacy as a leader in the imaging and printing industry.