--- In memtable@yahoogroups.com, "herveroy13" <herveroy@...>
wrote:
>
> hello everybody,
> I have a Pb with TkbMemTable when migrating from Delphi5 to
Delphi7.
> Compiling is Ok but an error occurs when running.
>
> Format not specified
>
> It occurs on an instruction :
MmTbl.LoadFromFile(MmTbl.PersistentFile);
> where persistent file is a .txt file
> This instruction was correct on Delphi 5.
>
> Where is the pb ?
>
> Hervé
>
> Thx
>
Herve -
Sean was right about using a separate format component, a
kbmCSVStreamFormat class. Kim separated the file I/O logic from
the memtable several years ago.
It basically works the same way, but makes the property
page smaller/less complex on the memtable. Instead of specifying
the import file properties on the memtable, you specify them on a
kbmCSVStreamFormat class. Then you assign the
kbmCSVStreamFormat class to your kbmMemTable's
DefaultFormat property.
Since you are performing the same basic tasks, converting your
kbmMemTable code to the newer format should be relatively
painless.
As for TClientDataSet being 'native' to delphi, I'm not sure what
Sean was talking about. TkbmMemTable is as 'native' to delphi as it
gets, being composed of 100% delphi code. Incidentally,
kbmMemTable has much better performance than tclientdataset, is
more stable, is thread safe etc. It is a VAST improvement over
TClientDataset, and is completely 'native' to delphi.
David Keith