errmes$ returns the message associated with a numeric error code available when an error occurs. It is frequently used when the error code errn is used, in the error handling routine set by Onerrgo.
Syntax :
errmes$(INT_EXPR)
where INT_EXPR is an expression returning an integer value
Example:
Let’s trigger an error (division by zero).

Fig. Example
Description :
The result type is Char. The message returned depends on the connection language.
As errn only has a significant value in the error handling routine, errmes$ should be primarily used in error handling routines. By entering errmes$ in calculator directly can give error values messages.
About Us
Greytrix is a one-stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.
Greytrix has some unique solutions of Sage X3 integration with Sage CRM, Salesforce.com, and Magento eCommerce along with Sage X3 migration from Sage 50 US, Sage Pro, and QuickBooks. We also offer best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.
For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com. We will be glad to assist you.