Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tables
Message
De
26/06/2000 14:36:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Re: Tables
Divers
Thread ID:
00384686
Message ID:
00384693
Vues:
34
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform