11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

expr Specifies a dynamic array that consists of two elements. The first<br />

element is the key for a record in the error message file. The second<br />

element is a parameter that some of the format codes use. For format<br />

codes, see the following table. Attribute marks (@AM or @FM) delimit<br />

elements.<br />

FROM file.var Specifies a file from which to extract a user-defined error message. The<br />

default is the UniData error message file.<br />

PRINTERR Parameters<br />

Creating a User-Defined Error Message<br />

Error messages in the UniData error message file consist of format codes and literal<br />

strings. The following table describes the codes you can include in error messages.<br />

Code Description<br />

A Extracts the next element in expr.<br />

A(n) Extracts the next element in expr, left-justified in a string of length n.<br />

C Clears the screen.<br />

D Enters the date in internal format.<br />

E literal Enters the message ID at the beginning of the message enclosed in brackets,<br />

followed by an optional literal string.<br />

H literal Prints literal.<br />

L Prints a carriage return/line feed. You must specify L (carriage return/line<br />

feed) explicitly.<br />

L(n) Prints n carriage returns/line feeds.<br />

R(n) Extracts the next element in expr, right-justified in an attribute of n blanks.<br />

S(n) Prints n spaces.<br />

PRINTERR Error Message Codes<br />

PRINTERR 1-580

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!