在ente中:
string ls_id
long ll_row
if key <> keyenter! then return
ll_row = this.getrow()
if isnull(ll_row) or ll_row <= 0 then return
ls_id = this.object.字段[ll_row]
if ids.retrieve(ls_id) <> 1 then
messagebox('......)
return
end if
ids.RowsCopy(1,1,primary!,this,ll_row,primary!)
this.insertrow(0)