Specifies one character expression to precede error messages and another one to follow them.

Syntax

SET ERROR TO
[<preceding expC> [, <following expC>]]

<preceding expC>

An expression of up to 33 characters to precede error messages. dBASE Plus ignores any characters after 33.

<following expC>

An expression of up to 33 characters to follow error messages. dBASE Plus ignores any characters after 33. If you want to specify a value for <following expC>, you must also specify a value or empty string ("") for <preceding expC>.

Default

The default for the message that precedes error messages is "Error: ". The default for the message that follows error messages is an empty string. To change the default, set the ERROR parameter in PLUS.ini, using the following format:

ERROR = <preceding expC> [, <following expC>]

Description

Use SET ERROR to customize the beginnings and endings of run-time error messages. SET ERROR TO without an argument resets the beginnings and endings to the default values.

SET ERROR is similar to ON ERROR; both can be used to customize error messages. SET ERROR, however, can only specify expressions to precede and follow a standard dBASE Plus error message, while ON ERROR can specify the message itself. Also unlike ON ERROR, SET ERROR can't call a procedure that carries out a series of commands.