xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

SetErrorMode()

Queries or changes the behavior with operating system errors.

Syntax

SetErrorMode( [<nNewErrorMode>] ) --> nOldErrorMode

Arguments

<nNewErrorMode>
This parameter is a numeric value of 0 or 1. Other values are ignored.

Return

The function returns a numeric value indicating the previous error mode.

Description

Function SetErrorMode() instructs the operating system how an xHarbour application handles errors that occur on the operating system level. For example, when function DiskChange() is called and the specified disk drive has no disk inserted, the operating system would display a message box prompting the user for inserting a disk. To suppress message boxes displayed by the operating system, SetErrorMode(1) must be called.

SetErrorMode(0) enables the display of message boxes created by the operating system.

Info

See also:DiskChange(), ErrorBlock(), IsDisk()
Category: Error functions , xHarbour extensions
Source:rtl\errorsys.prg
LIB:xhb.lib
DLL:xhbdll.dll


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