Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About exclusive use....
Message
De
05/12/2000 19:05:12
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
05/12/2000 18:48:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00449722
Message ID:
00449723
Vues:
15
Hi Ric,

You could do something like:
LOCAL lError, cError

lError = .F.

* ----- Store current Error Handler
cError = ON("ERROR")

* ----- Set new Error Handler
ON ERROR lError = .T.

SELECT 0
USE filetopack EXCLUSIVE

* ----- Reset Error Handler
ON ERROR &cError

IF lError = .T.
   * ----- Table couldn't be opened Exclusively
   *       Display appropriate Error Message
ENDIF
Hope This Helps,
Gavin...

>I am going to allow certain sites the Pack command. I have error trapped to insure all other users are offline....
>
>but... how do check to see if a file CAN be used exclusive?
>
>I checked the FAQ...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform