>Hi Virusim,
>
>>I found that the first dbf file is open in workarea 3, the delete tag all also in workarea 3, but it prompt me to select which dbf file to open, then give me error 52.
>>
>>The other dbf file when open in workarea 3, the delete tag all for the dbf is in workarea 2, will not give me error.
>
>Could you post the code you are using?
>
Below is part of the function
LOCKFIL(haud,'haud')
PURGE('haud.cdx','')
INDEX ON .... TAG test1 of haud
INDEX on ....
INDEX on ....
LOCKFIL(daud,'daud')
PURGE('daud.cdx','')
INDEX on.. ...
INDEX on....
FUNC LOCKFILE(pFileName,pAlias)
USE (pFileName) IN 0 ALIAS (pAlias) EXCLUSIVE
ENDFUNC
FUNC PURGE(pCdxFile,pAlias)
DELETE TAG ALL OF (pCdxFile)
ENDFUNC
Best Regards
Virusim