Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File in Use Problem
Message
 
À
13/03/2000 09:39:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00344962
Message ID:
00344964
Vues:
28
>Hello,
>
>I can't understand why the following code does not work:
>
> if used('selhdr.dbf')
> else
> use selhdr in 0 exclu
> endif
>
>I know that the table is being used in a workarea, yet it falls right through the first statement and tries to open the file again - thus causing an error. I've tried
>
> IF !used("selhdr.dbf")
>
> and that doesn't work either. Is there something in the environment that I'm failing to see, or something about the way this command works that I'm not aware of?
>

USED takes the Alias, not the filename.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform