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 18:35:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
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:
00862009
Vues:
13
>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?

used() with a text parameter asks whether you have an alias open, not the table. That is, if you open a table with another alias, for example:
Use January alias SomeMonth
used("january") should return .F.; used("SomeMonth") should return .T.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform