Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



This function is used to print standard jBASE error messages. It takes the general form: 

PRINTERR expression

Where expression should evaluate to the numeric or string name of a valid error message in the jBASE error message file. If the error message requires parameters then these can be passed to the message as subsequent fields of the expression.


When the PRINTERR statement is used in International Mode, the error message file to be used, i.e. the default “jBASICmessages” or other as configured via the error message environment variable, will be suffixed with the current locale. For example, if the currently configured locale is “fr_FR” then the statement will attempt to find the specified error message record id in the “jBASICmessages_fr_FR” error message file. If the file cannot be found then the country code will be discarded and just the language code used. i.e. the file  jBASICmessages_fr” will be used. If this file is also not found then the error message file “jBASICmessages” will be used.


  • The PRINTERR statement is most useful for user-defined messages that have been added to the standard set, with care being taken to not type the PRINTER statement instead.
  • Although this is not ideal, the PRINTERR statement must be supported for compatibility with older systems.

An example of use is as: 


Go back to jBASE BASIC.

Was this article helpful?