1. If QFilseStream.Open("myfile", fmOpenRead) = 0 Then WORKS
#1111
Posted by: 2003-10-21 09:41:23
Hello,
The OPEN method of QFileStream is not a SUB as stated in the HTML DOCUMENTATION, but a FUNCTION returning zero if the file does not exist.
' ---------------------------- $INCLUDE "RAPIDQ.INC" ' Dim fileIn As QFileStream If fileIn.Open ("c:dontexist", fmOpenRead) <> 0 Then ShowMessage ("OK the file exist") Else ShowMessage ("The File Does Not Exist and it wont Bug") End If ' Application.Terminate End ' ----------------------------