xHarbour Reference Documentation > Function Reference |
Queries or changes the behavior with operating system errors.
SetErrorMode( [<nNewErrorMode>] ) --> nOldErrorMode
The function returns a numeric value indicating the previous error mode.
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.
See also: | DiskChange(), ErrorBlock(), IsDisk() |
Category: | Error functions , xHarbour extensions |
Source: | rtl\errorsys.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com