Quote: "if file exist( f$ ) = False( 0 ) then exitfunction False( 0 )"
Try instead to create a variable flag such as DoesFileExist and try to code it like.
Quote: "CODE:
DoesFileExist = file exist ( f$ )
if DoesFileExist=0 then existfunction 0 "
The reason is that the File Exist command (being a function) returns a value and it is the the help file shows it written. I think you actually want to write your code something like
Quote: "CODE:
if ( d = file exist( f$ )) = 0 then exitfunction "
But I am not sure that is good syntax.
The help file information shows
Quote: "FILE EXIST
This command will return an integer value of one if the specified file exists, otherwise zero is returned.
SYNTAX
Return Value = FILE EXIST(Filename String)
"
Wasting CPU Cycles since the 286 was a hot machine.