Recent

Author Topic: Around TSDFDataSet and TFixedFormatDataSet .  (Read 13263 times)

arwen

  • Full Member
  • ***
  • Posts: 104
    • http://www.flussiliberi.it/
Around TSDFDataSet and TFixedFormatDataSet .
« on: January 10, 2007, 08:08:32 am »
Where I can find an example on TSDFDataSet and FixedFormatDataSet ?

Thanks to all

arwen

  • Full Member
  • ***
  • Posts: 104
    • http://www.flussiliberi.it/
Around TSDFDataSet and TFixedFormatDataSet .
« Reply #1 on: January 10, 2007, 10:28:50 am »
I'm trying with TSDFDataSet but it seems  not work .

On my form I have put a TSDFDataSet where I define 2 item like ftString and I have assigned a file name where save data.
Then I have put a TDataSource connected with my TSDFDataSet and then a TDBNavigator connected to the datasource.
At the end I have put a TDBGrid connected with TDataSource but if I try to define the columns I can't see the field name in the dropdown FieldName.  :evil:

Why ?? Some example !!

TSDFDataSet work on windows and Linux (or don't work) ?

Thanks to all.  :cry:

arwen

  • Full Member
  • ***
  • Posts: 104
    • http://www.flussiliberi.it/
Around TSDFDataSet and TFixedFormatDataSet .
« Reply #2 on: January 10, 2007, 05:18:45 pm »
I have uncovered that the two components have been converted from delphi components.
I have download the originals components and I have successful recompiled the example with Lazarus .
Now I am studying it.

The original components is at this URL :
http://www.torry.net/pages.php?id=567

When I'll have understood how it work I'll put it on my web page .  :roll:

ragnar

  • Newbie
  • Posts: 1
Around TSDFDataSet and TFixedFormatDataSet .
« Reply #3 on: February 01, 2007, 10:26:51 pm »
Quote from: "arwen"
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

arwen

  • Full Member
  • ***
  • Posts: 104
    • http://www.flussiliberi.it/
Around TSDFDataSet and TFixedFormatDataSet .
« Reply #4 on: March 10, 2007, 11:53:25 am »
I have developed a little application that use SdfDataSet and the Tagraph
to manage my Aquarius .
If someone is interests the source can be downloaded here :
http://freeflow.awardspace.com/acquarius.html

PS : the site and the program is only in Italian for the moment

 Lazarus is fantastic

 

TinyPortal © 2005-2018