Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
USE EXCLU in multiuser system?
Message
From
23/11/1999 15:03:54
 
 
To
23/11/1999 15:00:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00294535
Message ID:
00294541
Views:
32
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform