>Sorry for my bad English :)
>
>I was wondering whether I can control error messages and wait windows which result from lock () function
The LOCK() function does not generate error messages but returns .T./.F. on success/failure
You can avoid the WAIT WINDOW message by changing SET REPROCESS setting. See help for details.
--sb--