xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

SET ERRORLOOP

Defines the maximum recursion depth for error handling.

Syntax

SET ERRORLOOP TO <nRecursion>

Arguments

<nRecursion>
A numeric value specifying the maximum number of recursive calls within the xharbour error handling routine. The default value is 8.

Description

The SET ERRORLOOP command restricts recursive calls within the xHarbour error handling routine to a number of <nRecursion> calls. This is required when a runtime error occurs in an error handling routine. In this case, an endless recursion is suppressed by terminating the application when the error handling routine has not resolved a runtime error after <nRecursion> invocations.

Note:  xHarbour's default error handling routine is programmed in the file ERRORSYS.PRG.

Info

See also:Set()
Category: Environment commands , SET commands , xHarbour extensions
LIB:xhb.lib
DLL:xhbdll.dll


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