xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

FError()

Retrieves the error code of the last low-level file operation.

Syntax

FError() --> nErrorCode

Return

The function returns the error code of the last low-level file operation as a numeric value. If the last low-level file operation is successful, the return value is zero.

Description

Low-level file operations work with file handles and include the functions FClose(), FCreate() , FErase(), FOpen(), FRead(), FReadStr(), FRename(), FSeek() and FWrite(). If any file operation performed by these functions fails, the error code obtained from the disk operating system is returned from function FError(). The function retains this value until a successful low-level file operation completes.

Note:  error codes for low-level file functions are a subset of error codes listed under DosError(). See DosError() for a description of the meaning of error codes.

Info

See also:DosError(), FClose(), FCreate(), FErase(), FOpen(), FRead(), FReadStr(), FRename(), FSeek(), FWrite(), HB_OsError()
Category: File functions , Low level file functions
Source:rtl\philes.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// See the example for FCreate()

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