I'm having a problem when I try to have two files open at the same time, both for output. When it goes to open the second file it tells me that the file is already open. (I set both files = freefile too). Is it possible to do this?
Yeah, it odd how that works. FreeFile will return the next available filehandle, but it won't actually lock it untill you use it (i.e. open a file with it). I'm of the opinion that if you ask the OS for a file handle (i.e. calling freeFile) and the OS gives you a handle, it should be yours and not handed out again on the next call to FreeFile . . . but thats just me. ;-) - Jeff Marler B-)
I don't think it is just you, I agree. Once you have asked for a handle and been allocated one it makes no sense to hand it out again if the file has not been opened, but I guess we should be used to VB not nessecarily doing the sensible thing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.