=cursorsetprop('buffering',3,'myview') >browse >*-- (there is already one record) >*-- (CTRL+Y to add a new record)(fill in some stuff - *still on the new record; ESC to clear the browse) >mytest=tablueupdate(.t.) >*-- mytest returns .T. >browse >*-- (the new record is there - also in SQL) >DELETE FOR myview.testvalue > 1 >mytest=tableupdate(.t.) >*-- mytest is .T. >browse >*-- the record is gone because of my set deleted, * but I can still see the RECNO/RECC at bottom as 1 of 2) >*-- (record is also gone from SQL Table) >SELECT myview >*-- I read a thread which suggest a new select of the view prior to a requery) >mytest=REQUERY() >*-- AHA!! mytest returns -1. AERROR() returns 1526. *Why? I don't know. But this must be the problem, eh? >*-- BTW, I also tried mytest=REQUERY('myview') and got the same thing >browse >*-- the record is gone because of my set deleted, *but I can still see the RECNO/RECC at bottom as 1 of 2 >*-- record is also gone from SQL Table. ESC to clear the browser >SET DELETED OFF >browse >*-- I can now see the record as marked for deletion)>
*... if myTest < 0 errHand() endif *... Function errHand lcError='' Aerror(arrCheck) For ix=1 to 7 lcError = lcError+trans( arrCheck [ix])+ chr(13) Endfor Messagebox(lcError,0,'Error def.')Cetin