Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is txt file open

Status
Not open for further replies.

denis60

Technical User
Apr 19, 2001
89
0
0
CA
I folks

How to verify if a txt file is still open?

Thanks for your help
 
To do so I just use the CLOSE statement, thus closing all files.
 
Ok, but i don't want to close file


Here an exemple of what i'm looking for

ex.: if close(filenumber) then "do this" else "Do that"
 
If you attempt to open a file that is already open VB will return runtime error #55 ... you could create code that traps this error, and then moves you onto your desired processes in your error handling.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top