Click or drag to resize

ErrString Function

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

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

Parameters

dwNewReturnCode
Type: UInt32
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