Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-10

TBufDataset.Filename property in Object Inspector

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Following on from my previous TMemDataset.Filename issue. With TBufDataset, there is no property editor associated with the FileName property. Is this just an oversight or done for a specific reason?

An the same issue as with TMemDataset.Filename. Clearly it expects a specific file format denoted with a specific file extension. I selected one of Kylix 3's *.cds files...

/home/graemeg/apps/kylix3/examples/delphi/db/fishfact/biolife.cds

and when I set Active = True, the TBufDataset gave an "unable to open file" error - I assume what it really meant is that it doesn't know the file stream format.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
Hi, Following on from my previous TMemDataset.Filename issue. With TBufDataset, there is no property editor associated with the FileName property. Is this just an oversight or done for a specific reason?

Oversight.

Show quoted text 10 lines
An the same issue as with TMemDataset.Filename. Clearly it expects a specific file format denoted with a specific file extension. I selected one of Kylix 3's *.cds files... /home/graemeg/apps/kylix3/examples/delphi/db/fishfact/biolife.cds and when I set Active = True, the TBufDataset gave an "unable to open file" error - I assume what it really meant is that it doesn't know the file stream format.

Correct.

TBufDataset can read the XML format used by TClientDataset, but by default it uses another format. It cannot read the binary cds format.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
TBufDataset can read the XML format used by TClientDataset, but by default it uses another format. It cannot read the binary cds format.

I looked at the properties listed in the Object Inspector again. I see no property that tells me to switch between XML or any other format. How do you tell TBufDataset what the format is of the file specified in the FileName property?

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email