Can Curval() and OldVal() be used with cursoradapter cursors?
I get an error 1585 (update conflict) when I save changes to 1st cursor after saving changes to 2nd cursor. But when I try to resolve the conflict, the changes from the 2nd cursor (which are now in the underlying table don't show up in the CurVal() function. It still shows the Oldval()
I use it the following way:
First fill CAcursor1 with values from Table1.
Next fill CAcursor2 with same values from Table1.
Edit CAcursor2
TableUpdate()
select CAcursor1
Edit CACursor1 &&same fields
Begin Transaction
TablUpdate && Get error 1585
Rollback && because of error
END Transaction
? oldVal('somefield')
? CurVal('somefield') &&same as oldval
What am I missing?
Thanks
I get an error 1585 (update conflict) when I save changes to 1st cursor after saving changes to 2nd cursor. But when I try to resolve the conflict, the changes from the 2nd cursor (which are now in the underlying table don't show up in the CurVal() function. It still shows the Oldval()
I use it the following way:
First fill CAcursor1 with values from Table1.
Next fill CAcursor2 with same values from Table1.
Edit CAcursor2
TableUpdate()
select CAcursor1
Edit CACursor1 &&same fields
Begin Transaction
TablUpdate && Get error 1585
Rollback && because of error
END Transaction
? oldVal('somefield')
? CurVal('somefield') &&same as oldval
What am I missing?
Thanks