Harbour Reference Guide

 

FERROR()

Reports the error status of low-level file functions

Syntax

FERROR() --> <nErrorCode>

Returns

<nErrorCode> Value of the DOS error last encountered by a low-level file function.

FERROR() Return Values

ErrorMeaning
0Successful
2File not found
3Path not found
4Too many files open
5Access denied
6Invalid handle
8Insufficient memory
15Invalid drive specified
19Attempted to write to a write-protected disk
21Drive not ready
23Data CRC error
29Write fault
30Read fault
32Sharing violation
33Lock Violation

Description

After every low-level file function,this function will return a value that provides additional informationon the status of the last low-level file functions's performance.If the FERROR() function returns a 0, no error was detected.Below is a table of possibles values returned by the FERROR() function.
Examples
      #include "Fileio.ch"
      //
      nHandle := FCREATE("Temp.txt", FC_NORMAL)
      IF FERROR() != 0
         ? "Cannot create file, DOS error ", FERROR()
      ENDIF
Status

Ready

Compliance

This function is CA-Clipper compatible

Files

Library is Rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30