Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a .dbf File
Message
De
27/09/2004 13:24:06
 
 
À
27/09/2004 13:05:13
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00946324
Message ID:
00946351
Vues:
18
If you choose Mike's suggestion, I posted a add-on to notify a user that their application will automatically shutdown, and then remotely do so. It is in the download section (download #19482 ). Hope it helps

Greg

>Hi Mike
>
>All I can suggest is a timer that the program is always running on each client's PC. This timer checks for the existence of a file in a shared location on the network. Once this file is detected, the app shuts down. Leaving you free access to the files.
>
>>I am now realizing that my current code will not work on a Network with multiple users.
>>
>>i.e. Suppose I need exclusive access to a .dbf file that could be shared by other users.
>>
>>I would normally write:
>>
>>if used("MyFile")
>> select MyFile
>> use
>>endif
>>
>>use MyFile excl
>>
>>I now realize that used("MyFile")
>>returns .t. if I am using it
>>but returns .f. if somewone else is using it on the same Server.
>>
>>Is there some way of taking over a file exclusively that someone else is already using non exclusively over a Network?
>>
>>Mike Smith
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform