Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USED() function returns .F. but table is open?
Message
De
24/12/2003 14:03:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00861974
Message ID:
00861976
Vues:
18
The most common case that I've seen is when a prior SELECT-SQL on that table (and involving no others) actually "returns" a "filtered result set" (which, of course, is not a 'return' at all).

To me the best way to overcome this is to employ the NOFILTER clause, available since VFP7. Alternately, I suppose that closing the result-set cursor 'name' would accomplish the same thing.

cheers

>This is probably a fairly basic level question, but here goes...
>
>Occasionally I will encounter a situation where the Used() function will return .f. for a table/cursor being in use, but attemting to then use the tested table fails with a "file is in use" error. The problem is intermittent.
>
>What would cause this to occur?
>
>TIA,
>Margaret
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform