Squirrel30
Programmer
Hi
I have this code
MainForm.ADOT1.Insert;
MainForm.ADOT1.FieldByName('ID_VISOBJEKT_ZAHTEV').AsInteger:=MainForm.ADOQ3.FieldByName('ID_VISOBJEKT_ZAHTEV').AsInteger;
if MainForm.ADOT1.State in [dsEdit,dsInsert] then begin
showmessage(MainForm.ADOt1.FieldByName('ID_VISOBJEKT_ZAHTEV').AsString); MainForm.ADOT1.post;
end;
end;
but it doesnt post good .MainForm.ADOT1.FieldByName('ID_VISOBJEKT_ZAHTEV').AsInteger current is 93previous was 92
and it posts 92 istead of 93
why?
I have this code
MainForm.ADOT1.Insert;
MainForm.ADOT1.FieldByName('ID_VISOBJEKT_ZAHTEV').AsInteger:=MainForm.ADOQ3.FieldByName('ID_VISOBJEKT_ZAHTEV').AsInteger;
if MainForm.ADOT1.State in [dsEdit,dsInsert] then begin
showmessage(MainForm.ADOt1.FieldByName('ID_VISOBJEKT_ZAHTEV').AsString); MainForm.ADOT1.post;
end;
end;
but it doesnt post good .MainForm.ADOT1.FieldByName('ID_VISOBJEKT_ZAHTEV').AsInteger current is 93previous was 92
and it posts 92 istead of 93
why?