Walter Meester
HoogkarspelNetherlands
Chris,
>I want to write a routine to pack tables in a multiuser environment. I want the code to see if there are any other users on the system and if not open the tables exclusively and perform the pack. How do I determine if a table is in use by other users (without using error trapping)?
Error trapping is definitely the most easy way, but if you want to check the numbers of users or the usernames who have used the file, you might look at the NetFileEnum API call in the FAQ: 'Who opened what files on the network?'
This however does not give you a guarantee that if no-one has used the file you'll still be able to open it exclusively after you checked. IMO you're better off with handling any errors
Walter,
>TIA
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only