WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How To Check if a File Handle is Closed

 Keywords: Check Confirm File Handle Closed IntControl 73

Question:

I need to confirm a file handle is close in my error processing. How can I check if a file handle is closed or not?

Answer:

I recommend testing for an open file handle using isDefined.
If IsDefined (hdlFW) Then hdlFW = FileClose(hdlFW)
... or ...
If IsDefined (hdlFW) Then If hdlFW != 0 Then hdlFW = FileClose(hdlFW)

Article ID:   W17933
Filename:   How To Check if a File Handle is Closed.txt
File Created: 2010:03:24:07:28:26
Last Updated: 2010:03:24:07:28:26