Code: Select all
ZReadOnlyQuery1.Active := false;
ZReadOnlyQuery1.SQL.Clear;
ZReadOnlyQuery1.SQL.Append('select Last_Insert_Rowid() as id;');
ZReadOnlyQuery1.Active := true;
id := qRwGeneral.FieldByName('id').AsInteger;
Moderators: gto, cipto_kh, EgonHugeist
Code: Select all
ZReadOnlyQuery1.Active := false;
ZReadOnlyQuery1.SQL.Clear;
ZReadOnlyQuery1.SQL.Append('select Last_Insert_Rowid() as id;');
ZReadOnlyQuery1.Active := true;
id := qRwGeneral.FieldByName('id').AsInteger;