Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use Command not working
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Use Command not working
Divers
Thread ID:
00601682
Message ID:
00601682
Vues:
47
Here's an odd one I've come across, and I can't figure out why this happens.
When I use an If...Then to check for a table being open, before opening it,
the if doesn't trap; it goes right to the open statement and then I get an error, "File Already Open".

Sample:

if !used('sometable')
use sometable in 0 exclu
endif

I also tried it the other way,

if used('sometable')
select sometable
else
use sometable in 0 exclu
endif

The 'if' clause fails in both places. Any ideas?

Bob Ohrstedt
Cleveland, OH
www.rjoassoc.com
Robert J. Ohrstedt
RJO Associates
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform