Subject Migration problem
Author jacobhavkrog
Hi - I'm migrating a form with a TwwDBGrid displaying data from a TwwTable.

TwwTable gets migrated to TwwIBOTable, and data are displayed nicely.

But I have one little problem.

When the user is entering data, she can press F5 to repeat the value, ie. automatically enter the value from the line above.

The BDE version of the application does this without problems, but the IBO version repeats the value from the 2nd line above, not the 1st line above.

Here is my code:

if TransTable.State = dsInsert then
RepeatTransTable.Last
else
if TransTable.State = dsEdit then
begin
RepeatTransTable.FindKey([TransTableTransNo.Value]);
RepeatTransTable.Prior;
end;
n := TransDBGrid.SelectedField.FieldName;

TransTable.FieldByName(n).Value := RepeatTransTable.FieldByName(n).Value;


I haven't added any Transaction stuff, I guess its here my problem is?


Thanks for your help!
Jacob