xHarbour Reference Documentation > Function Reference |
Returns language specific error messages.
HB_LangErrMsg( <nGenericError> ) --> cErrorMessage
The function returns a charcater string describing the error with the numeric code <nGenericError> in textual form. If the passed parameter is no error code, a null string ("") is returned.
HB_LangErrMsg() is part of xHarbour's language specific system. The returned character string depemds on the currently selected national language (see HB_LangSelect()).
The function is used in user-defined error handling routines that create Error() objects. The generic error code assigned to oError:genCode can be passed to HB_LangErrMsg() to obtain a meaningful character string for the error description in the currently selected national language. This error description can be assigned to oError:description.
See also: | BEGIN SEQUENCE, Break(), Error(), HB_LangMessage(), HB_LangName(), HB_LangSelect() |
Category: | Error functions , Language specific , xHarbour extensions |
Source: | rtl\langapi.c, lang\msg*.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com