Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I know if a file is already used as a resource f
Message
De
11/02/1999 15:58:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00186749
Message ID:
00186753
Vues:
20
>On a network. Everyone has their own resource file that has their userid in the file name. Unfortunately I did not forsee that some users might attempt log onto the system more than once. For various security reasons, they are not allowed to do this. But my setting of the resource file to their useridresource file gets them multiple messageboxes. the useridresource file is already being used.
>
>How can I know that a file is already being used?
>
>Brenda

Generally, you may trap for an error opening any DBF file:
ON ERROR lErrorflag=.t.
USE mytable EXCL
ON ERROR
IF lErrorflag=.t.
*** do something here
ENDIF
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform