Click or drag to resize

ErrString Function

X#
Return an error message associated with a system-generated error code.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION ErrString(
	dwNewReturnCode AS DWORD
) AS STRING
Request Example View Source

Parameters

dwNewReturnCode
Type: DWord
The error code exported by an error object.

Return Value

Type: String
The message string associated with the error code. Error messages are nation-dependent.
Remarks
Examples
This example displays the error message associated with a protection error:
X#
1FUNCTION Start()
2    QOut("EG_PROTECTION:", ErrString(EG_PROTECTION))
See Also