Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is a Table in Use
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01406905
Message ID:
01406907
Views:
74
>I am trying to identify if a table is in use, by another use on a different pc,
> and it could also be by a non Foxpro App (eg Report writer)
>I need to reindex the table but cant do that if anyone else has file open
>
>I have tried following:
> liHandle = FOPEN(tcFileName,2)
> IF liHandle = -1
> * File could not be opened
> llLocked = .t.
> ELSE
> * file can be opened exclusive
> FCLOSE(liHandle)
> ENDIF
>
>However, On My own PC , if I use the command:
> Use tcFilename
>It returns that it is being used
>Is there a way to find out, if other users on the network, apart from myself,
> have the file open
>
>TIA
>Gerard

Check Message #1374301
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform