Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if table is being used by others on the netw
Message
De
28/05/1999 15:22:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00223727
Message ID:
00224092
Vues:
22
>What if I don't want the error to show up for the user and I want just run a process on the side if the table is not used. I tried the error handler but I still saw a messagebox showing up on screen.
>

Try this:
lUseExclusiveWorked = .t.
cErrHandler = ON('ERROR')
ON ERROR lUseExclusiveWorked = .f.
USE <i>JRandomTable</i> EXCLUSIVE
ON ERROR &cErrHandler
IF lUseExclusiveWorked
   PACK
   USE
ELSE
   * do whatever you want if the USE EXCLSUIVE failed
ENDIF
>thanks
>nick
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform