xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_LangErrMsg()

Returns language specific error messages.

Syntax

HB_LangErrMsg( <nGenericError> ) --> cErrorMessage

Arguments

<nGenericError>
This is a numeric error code identifying the error message to retrieve. #define constants from the Error.ch file can be used for this generic error code. They begin with the prefix EG_*.

Return

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.

Description

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.

Info

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


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe