FERROR( ) Function

Returns a number corresponding to the most recent low-level file function error.

FERROR( )

Return Value

Numeric

Remarks

FERROR( ) returns 0 if a low-level file function executes successfully. A positive value is returned if a function doesn't execute successfully. The following table lists each error number returned by FERROR( ) and the cause of the error.

Error number

Error cause

2

File not found

4

Too many files open (out of file handles)

5

Access denied

6

Invalid file handle given

8

Out of memory

25

Seek error (can't seek before the start of a file)

29

Disk full

31

Error opening file

See Also

Reference

FCHSIZE( ) Function

FCLOSE( ) Function

FCREATE( ) Function

FEOF( ) Function

FFLUSH( ) Function

FGETS( ) Function

FOPEN( ) Function

FPUTS( ) Function

FREAD( ) Function

FSEEK( ) Function

FWRITE( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)