Sign in Join

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

Mailing lists / lazarus / 2017-10

TMemDataset.Filename property in Lazarus

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,

Playing around with TMemDataset, I dropped it on a form, then clicked "..." button of the FileName property in the Object Inspector. The file dialog shows that I can select ANY file, so I selected a PNG file and set Active = True. ;-) NO surprise, that didn't work as expected. Incorrect data stream.

Clearly the TMemDataset expects a specific file format, so why doesn't the File Open dialog list the file type and file extension that is expected.

Using Lazarus 1.9.0 r54792 FPC 3.0.2 x86_64-freebsd-gtk2

Regards,
Graeme

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
Hi, Playing around with TMemDataset, I dropped it on a form, then clicked "..." button of the FileName property in the Object Inspector. The file dialog shows that I can select ANY file, so I selected a PNG file and set Active = True. ;-) NO surprise, that didn't work as expected. Incorrect data stream. Clearly the TMemDataset expects a specific file format, so why doesn't the File Open dialog list the file type and file extension that is expected.

Because there is no designated extension.

Michael.

Reply by email