I'm trying with TSDFDataSet but it seems not work .
...
Why ?? Some example !!
...
The following works fine with me:
------------------------------------------
procedure TForm1.Button2Click(Sender: TObject);
begin
if (not SdfDataSet1.Active) then
begin
SdfDataSet1.FileName:='/home/ragnar/gurus.txt';
SdfDataSet1.Active:=true
end
else
begin
SdfDataSet1.Active:=false;
SdfDataSet1.FileName:=''
end
end;
------------------------------------------
The file /home/ragnar/gurus.txt looks exactly like this:
--------------------------
name, account,city
anita, 501, oslo
hermann,551,oslo
heinz,552,berlin
--------------------------
I have a TSdfDataSet, TDataSource, TDBGrid and TDBNavigator on the form, and the delimiter prop set to comma.
Everything works just fine. Can't get the filter property to work, though - anyone knows how to set the filter?
Greetings, Ragnar Schroder