home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.lang.basic
- Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!decwrl!sdd.hp.com!swrinde!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!bcbond
- From: bcbond@undergrad.math.waterloo.edu (Barry Bond)
- Subject: Re: HELP wanted: filehandling in Visual Basic
- Message-ID: <C1H8KI.Av9@undergrad.math.waterloo.edu>
- Organization: University of Waterloo
- References: <1993Jan26.135724.234@samba.oit.unc.edu>
- Date: Tue, 26 Jan 1993 19:53:03 GMT
- Lines: 27
-
- In article <1993Jan26.135724.234@samba.oit.unc.edu> dil.admin@mhs.unc.edu (Dave Laudicina) writes:
- >>Basically, it boils down to this:
- >> How can I determine whether a file (in this case a .BMP) exists in the
- >> given path?
- >>
- >>If someone can tell me what I have to do to solve this problem, please,
- >>mail me. I would be very grateful.
- >>
- >You could set up a file list box for a particular drive and path
- >and search through the file list to see if the file is in the list.
- >
- >I would also be interested if anyone has found a more efficient way
- >to do this.
- >Thx Dave L
- >
- >
-
- It's easier to use DIR$() to check if a file exists: eg.
- if Dir$("c:\vb\test.bmp") <> "" then
- debug.print "File exists"
- else
- debug.print "File not found"
- endif
-
- Barry.
-
-
-