home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!das.wang.com!ulowell!m2c!bu.edu!stanford.edu!agate!spool.mu.edu!howland.reston.ans.net!bogus.sura.net!darwin.sura.net!sgiblab!munnari.oz.au!titan!pcies2.trl.OZ.AU!d.gellert
- From: d.gellert@trl.oz.au (Dennis Gellert)
- Newsgroups: alt.lang.basic
- Subject: Re: HELP wanted: filehandling in Visual Basic
- Summary: Help me please!
- Keywords: Visual Basic
- Message-ID: <d.gellert.4.0@trl.oz.au>
- Date: 26 Jan 93 22:00:55 GMT
- References: <C1Ey0r.6z3@sci.kun.nl>
- Sender: root@trl.oz.au (System PRIVILEGED Account)
- Organization: Telecom Research
- Lines: 30
-
- In article <C1Ey0r.6z3@sci.kun.nl> heinr@sci.kun.nl (Hein Ragas) writes:
- >From: heinr@sci.kun.nl (Hein Ragas)
- >Subject: HELP wanted: filehandling in Visual Basic
- >Summary: Help me please!
- >Keywords: Visual Basic
- >Date: Mon, 25 Jan 1993 14:10:02 GMT
- >Hello.
- >
- >I am fairly new to Visual Basic, but I have been working in Basic for a
- >long time now.
- >
- >However, I have a problem, and I hope that someone more experienced with
- >Visual Basic can help me solve it.
- >
- >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.
- >
- >Greetings,
- > Hein Ragas
- >
- Try the Dir$ function
-
- eg: tofind$ = Dir$("d:\path\filename.BMP")
- If found, tofind$ will return the filename, else it will contain a null
- string.
- Dennis
-