HI,
Thanks Fraxzi, I will try it.
Carlos, rlock or flock alway return true or false, so in my code I write :
if rlock()
replace xxxx with yyy
else
break
endif
so, when one of database fail, all database will rollback, and it run perfect in my code.
thank
Kok