Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USE EXCLU in multiuser system?
Message
De
23/11/1999 15:03:54
 
 
À
23/11/1999 15:00:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00294535
Message ID:
00294541
Vues:
31
Hi Adrian,

>What's the best technique for getting exclusive USE on tables in a multi-user environment? I can't seem to trap Error no. 3 ("File in use" after a USE EXCLU call) in a form. Is it untrappable?

It should be trappable, any way, try this:
lcError = on('error')
on error *

use (MyTable) excl in 0

if used(juststem(MyTable))
   *Successful
else
   *Fail
endif

on error &lnError
You might want to create a generic resuable function or method out of this.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform