I must be missing something here.
If you create a temporary cursor, you are the only one that accesses it. No need to LOCK(), or anything similar.
If you want an updatable cursor, where changes go back to the underlying tables, use views. TableUpdate() and TableRevert() work just like with normal tables. Or very similar, at least.
HTH, Hilmar.
>I cannot use TABLEUPDATE() since this is temporary cursor. I use this cursor to collect document rows.
>For saving document, I use COPY TO and TABLEREVERT()
>
>I added LOCK() command because without lock command, the same error occurs in REPLACE command. Using LOCK() I can output a friendly error message. However, error still occurs.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)