Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If file is used by another exclusively
Message
 
 
To
13/11/2008 21:12:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361833
Message ID:
01361834
Views:
20
>How would I code
>
>IF another user has the file open exclusively
> whatever
>ENDIF
>
>Thanks, Randy

Just try to open the file in TRY/CATCH block
TRY
   use myFile shared
CATCH TO loException
  if loException.Error = 1705 && If memory serves right
     * file is in use by another user
  endif
ENDTRY
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform