Subject | Re: [IBO] Post or Cancel when moving record through TIB_NavigationBar |
---|---|
Author | Svein Erling Tysvær |
Post date | 2001-04-25T09:03:33Z |
>Am I missing something or this is the behavior of NavigationBar,I am missing something here - why would you want to force it to call post
>that if nothing has changed, it will call Cancel even though
>the query is in edit mode ?
(I don't know if it actually calls cancel, but to me that sounds sensible)?
>If so, how to force NavigationBar to call Post ?Simple, do some changes - e.g. in AfterEdit write something like
var DummyEdit: String;
begin
with SomeQuery do begin
DummyEdit:=Fields[0].AsString;
Fields[0].AsString:='Hello fxam';
Fields[0].AsString:=DummyEdit;
end;
end;
and hope that Delphi isn't smart enough to optimize all of this away.
Set