Sign in Join

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

Mailing lists / fpc-pascal / 2013-04

TBufDataset error

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Antonio Fortuny

Hi Guys.

Got something funny using the TBufDataSet FCL component. One is dropped onto a TForm.
I fill in some TFields (double click on the component image) and give them a name, datatype, size.
When I try to open I get the funny message: Missing (compatible) underlying dataset, cannot open

Lazarus 1.1 39279, FPC 2.6.1, i386-win32, on Vista

Antonio.

Michael Van Canneyt
to Antonio Fortuny
Antonio Fortuny wrote 6 lines
Hi Guys. Got something funny using the TBufDataSet FCL component. One is dropped onto a TForm. I fill in some TFields (double click on the component image) and give them a name, datatype, size.

You should fill in fielddefs, not TFields.
After you've created the fielddefs, you can use TFields.

Michael.

Antonio Fortuny
to Michael Van Canneyt
Michael Van Canneyt wrote
You should fill in fielddefs, not TFields.

1. Done. All fields defined in FieldDefs. Link a Datasource to the BufDataset and link a TDBGrid to the Datasource.
In the IDE, set BufDataset.Active to true. Grid columns color changes, BufDataset looks active, but no columns have been created into the DBGrid.

After you've created the fielddefs, you can use TFields.

OK, leave FieldDefs as in 1. Double click on BufDataset image, Fields window opens. Click on "+" and I get popup information message tellein that "Unable to get information about the fields list. Abstract methoc called".
Click on "Create new field" (third button), the create a new TStringField. In the IDE, set BufDataset.Active to true: strange message appear again Drop the TField created, set BufDataset.Active to true and all sames as in 1.

Antonio.

Show quoted text 5 lines
Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal