Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tables
Message
From
26/06/2000 14:36:55
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Re: Tables
Miscellaneous
Thread ID:
00384686
Message ID:
00384693
Views:
27
Hi Di,

The Used() function determines if a paticular alias is in use. In your example, you are opening the table with an alias, and should therefore be checking for that alias instead of the table name.

If !USED('ColorSet')
use ("&lcColorDBF") in 0 alias ColorSet
ENDIF

HTH

Jon

>Hi all,
>
>Why is it that when i chek for the usage of a file,the control goes into the !USED() function and then says , the file is in use. I am using the following ...
>
> IF !USED("&lcColorDBF")
> use ("&lcColorDBF") in 0 alias ColorSet
> ENDIF
>
>The flow of control goes into line 2 which is "USE ("&lc..." but then it throws an error mesg saying File is in use. How am I to overcome this error ? I am using that file before, but then it shouldnt enter into the IF Clause. I just placed the IF for a routine check, this happens to be in a TIMER event. So I need this to be checked every time.
>
>Thanks in advance
Previous
Reply
Map
View

Click here to load this message in the networking platform