Created
December 14, 2017 11:25
Star
You must be signed in to star a gist
Teste Apply Updates Return
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure TForm1.BitBtn1Click(Sender: TObject); //apply updates button | |
var | |
i: integer; | |
begin | |
SimpleDataSet1.Edit; | |
SimpleDataSet1.FieldByName('SOME_FIELD').AsInteger := 1; | |
SimpleDataSet1.Post; | |
i := SimpleDataSet1.ApplyUpdates(-1); | |
if i <> 0 then | |
raise Exception.Create('Error count='+IntToStr(i)+' on ApplyUpdates occured'); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment