Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is the file in use?
Message
From
25/01/2007 17:07:18
 
 
To
25/01/2007 17:02:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01189394
Message ID:
01189398
Views:
6
I meant any type of file. It could be a text file

>= AUSED(mydbfs) && Create an array of open tables
>?ASCAN(mydbfs,UPPER(ALLTRIM(filelist.ctablename))) && is the file listed in ctablename open?
>
>Or did you mean any type of file?
>
>>I have a table with file names in in.
>>
>>Is there a way to know if a file is opened?
>>
>>Will I have to use fclose or fcreate?
>>
>>What I'm hoping for (solution) is something like the following
>>
>>
>>If TheFileIsOpen( lcNameOfTheFile)
>>   .
>>   .
>>   .
>>else
>>   .
>>   .
>>   .
>>endif
>>
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Reply
Map
View

Click here to load this message in the networking platform