Oscar
The only way to achieve this is to trap the error generated when a Table cannot be opened exclusively:
Prior to VFP8.0
LOCAL llInUse
ON ERROR llInUse = .T.
USE TableName EXCLUSIVE
IF llInUse
ENDIF
In VFP8.0, however, it's less messy:
LOCAL loException AS Exception
TRY
USE TableName EXCLUSIVE
CATCH TO loException
ENDDTRY
HTH
Kev
>Hola
>
>I need to copy or Use a table which me be opened by someone.
>
>How can I test if it is in use by someone else without generating an error?
>
>Thanks in advance for any hints.
>
>
>Oscar Corte