Article View: alt.lang.basic
Article #458Re: HELP wanted: filehandling in Visual Basic
From: Barry Bond
Date: Tue, 26 Jan 1993 19:53
Date: Tue, 26 Jan 1993 19:53
25 lines
1274 bytes
1274 bytes
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.
Technical Details
Message-ID:
<C1H8KI.Av9@undergrad.math.waterloo.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!amdahl!rtech!decwrl!sdd.hp.com!swrinde!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!bcbondReferences:
<1993Jan26.135724.234@samba.oit.unc.edu>Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.basic Path: arc1-ca.pugleaf.net!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