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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only