home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lang / basic / 1107 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. 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
  2. From: d.gellert@trl.oz.au (Dennis Gellert)
  3. Newsgroups: alt.lang.basic
  4. Subject: Re: HELP wanted: filehandling in Visual Basic
  5. Summary: Help me please!
  6. Keywords: Visual Basic
  7. Message-ID: <d.gellert.4.0@trl.oz.au>
  8. Date: 26 Jan 93 22:00:55 GMT
  9. References: <C1Ey0r.6z3@sci.kun.nl>
  10. Sender: root@trl.oz.au (System PRIVILEGED Account)
  11. Organization: Telecom Research
  12. Lines: 30
  13.  
  14. In article <C1Ey0r.6z3@sci.kun.nl> heinr@sci.kun.nl (Hein Ragas) writes:
  15. >From: heinr@sci.kun.nl (Hein Ragas)
  16. >Subject: HELP wanted: filehandling in Visual Basic
  17. >Summary: Help me please!
  18. >Keywords: Visual Basic
  19. >Date: Mon, 25 Jan 1993 14:10:02 GMT
  20. >Hello.
  21. >
  22. >I am fairly new to Visual Basic, but I have been working in Basic for a 
  23. >long time now.
  24. >
  25. >However, I have a problem, and I hope that someone more experienced with
  26. >Visual Basic can help me solve it.
  27. >
  28. >Basically, it boils down to this:
  29. > How can I determine whether a file (in this case a .BMP) exists in the
  30. > given path?
  31. >
  32. >If someone can tell me what I have to do to solve this problem, please,
  33. >mail me. I would be very grateful.
  34. >
  35. >Greetings,
  36. >          Hein Ragas
  37. >
  38. Try the Dir$ function
  39.  
  40. eg:  tofind$ = Dir$("d:\path\filename.BMP")
  41. If found, tofind$ will return the filename, else it will contain a null
  42. string.
  43. Dennis
  44.