[futurebasic] Re: [FB] Error Message

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2001 : Group Archive : Group : All Groups

From: Pete <furbies@...>
Date: Sat, 28 Jul 2001 09:25:14 +1000
MAWRPh@... on 28/7/01 8:13 AM  scrawled:

> In a message dated 07/27/2001 2:05:43 AM Pacific Daylight Time,
> futurebasic-digest-help@... writes:
> 
>>> If I comment out this line:
>>> OPEN "RD", #1, gFileName$, _custRecLen, gVolRefNum%
>>> The error goes away but of course I can't work on the file.
>> 
>> if gvolrefnum% correct?
>> is file #1 already in use?
>> 
>> -bowerbird
>> 
> bowerbird and Pete
> 
> I only open one file and always close it after use. I checked to see if
> file#1 was open by issuing a CLOSE #1 statement before the open statement and
> get an error that file is not open so file#1 is not in use. gVolRefNum is set
> when the app initially opens the file for the first time. I thought this
> number does not change for a given file so as long as the app is open, this
> number should be correct. I use the exact same code in a number of places
> without a problem. I also added a FILE$ statement just before this to test it
> and I still get the same error.
> 
> Thanks for the help. Still looking for the answer.
> 
> Mark

Have you checked that you don't overwrite/reset/nullify gVolRefNum%
 at any point in your code ?

Pete...