Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MoveFolders problem
Message
 
 
À
30/11/2000 12:33:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00446793
Message ID:
00447478
Vues:
20
>Nadya:
>
>>
>Suppose, I have a table open shared. I want to open it shared at another user station. How can I check, what this table is not opened exclusively already? Fopen() always returns -1 regardless of the second parameter. Do I really need to use Error Handler here or there is another way?
>>
>
>Why not write a custom class wrapper for the use command and trap the error there? For example, the class could have an Exclusive property and a Use method. If Use raises an error code 3 when Exclusive is False, you then know the file is used exclusively by another user.
>
>Daniel

I just did. See, if you find problems in this code:
     =messagebox(tcTable +' is opened exclusively by another user. Can not proceed...',48)
               return .f. && Table could not be opened (already used exclusively)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform