Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem in Using USED()
Message
De
15/10/2001 17:16:13
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
15/10/2001 16:50:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00568793
Message ID:
00568810
Vues:
26
Ravindra-

> IT SAYS 'FILE IS IN USE'. So now how do I know that file is already opened. Now suppose I will make use of USED() function.

You can tell by using the low level file function FOPEN(). Something like

lcDBF = "C:\SomePath\SomeDBF.DBF"
lnHandle = FOPEN(lcDBF, 11)

if lnHandle = -1 then it's in use. You'll need to FCLOSE the handle before you can use it. If the app is hitting data really hard then you *might* see the table used between the time you FCLOSE and then USE the file, but there would be strategies for manaaging that, too.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform