![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Incident Reports » Incident Reports Addressed for Version 2.31 » View Incident Report |
| Reported By: Yusuf Zorlu Reported On: 10/11/2019 For: Version 2.31 Build 8 |
procedure TForm1.Button1Click(Sender: TObject);
begin
tpos3.SQL.Text:='select a_pos, a_ag, a_ff from positionen';
tpos3.open;
application.processmessages;
showmessage('test 1, now change sql and reopen with lesser fields');
tpos3.close;
tpos3.sql.text:='select a_pos from positionen';
tpos3.open;
end;
procedure TForm1.tPos3BeforeOpen(DataSet: TDataSet);
var
i, imax:integer;
begin
dataset.fields.Clear;
dataset.FieldDefs.Clear;
//while DataSet.fieldcount>0 do DataSet.fields[0].free;
dataset.fielddefs.updated:=false;
try
if dataset.fielddefs.updated=false then DataSet.FieldDefs.Update;
except
on e:Exception do begin
showmessage(e.message);
end;
end;
imax:=DataSet.fielddefs.count;
for i:=0 to imax-1 do begin
if dataset.findfield(dataset.fielddefs[i].Name)=nil then begin
DataSet.fielddefs[i].createfield(DataSet);
end;
end;
end;This web page was last updated on Wednesday, April 8, 2026 at 04:38 AM | Privacy Policy © 2026 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

