Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About exclusive use....
Message
From
05/12/2000 19:05:12
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
 
To
05/12/2000 18:48:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00449722
Message ID:
00449723
Views:
14
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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform