Hi Juliam,
if the code to check for the error is in a object, not in a prg, use the ERROR method instaed of ON ERRER
The ON ERROR statement will be ignored if an ERROR
method is active.
Agnes
>Hi Allen,
>Yes, you can check if a table is opened excl without any error message.
>
>*Prior to opening the table, disable the normal error handling...
>ON ERROR ?""
>*Attempt to open the table...
>SELECT 0
>USE mytable EXCL
>IF EMPTY(ALIAS())
> WAIT WINDOW "Cannot get exclusive use!"
>ELSE
> *You have opened the table exclusive!
>ENDIF
>*Be sure to restore the error handler!
>ON ERROR
>
>Hope that helps,
>Julian
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]