
"File Not Found/Invalid File Format" Errors
: I have written an appliciation for a local network using VB3 Pro. When
: the initial form is loading I get an Invalid File Format Error. When I
: run the program on a stand alone system thru visual basic, I dont get
: this error. I have also seen some File Not Found errors when the
: program is not trying to read from a file. What could cause these? I
: have put in On Error Resume Next statements but this doesn't seem to
: help. Where should I look for the problem?
Well, Invalid file format errors are when you are trying to use a print
function in a binary file format, or viseversa. And if you use an open
"filename.ext" for output (OR input) as #1
and filename.ext does not exist, it will give you an error, you might want
to run the file one step at a time, on the network.... What I do is I put
a message box before I open a file with the filename in the box (It may be
a variable to open the file...) But I read off the directory and the
filename of what you are going to open, so when you do get an error
message, you know with what file it is.... So I would go through the
program, put little message boxes before the open statement, and then
compile and run on the network.... Then jot down the files that need to
be fixed, Go to dos, see what and where each file is.... If it does not
exist, edit a file, save it as the filename, and leave it bland or
anything.....
-- Ben
--
Ben Buxton, Sophomore quad at Dublin Scioto High School.
Home of the Division 2 champions!!! Go Irish, Go band!!!
Creator of the official DSHSMB Web page.
http://pages.prodigy.com/OH/dshsmb