milan wrote:
Vincent Snijders  wrote / napĂ­sal(a):
milan schreef:
Hello,
Does TDbf work with TDataModule ? (in generally).


Yes.

Vincent

So I have new project with Form1 and DataModule1.
Inside Form1 is DbGrid1 and inside DataModule1 is Datasource1 and Dbf1.
What's the DataSource property of DbGrid1?
The property field is blank, without possibilities.
Everything I wrote inside is invalid parameter.
I thought that is DataModule1.Datasource1.

    Thanks.

You cannot set data aware components to use datasources from datamodules at design time the way you can in Delphi (yet). Yes, I know, really big pain for those used to using Delphi that way, which includes me. I understand you can do it at run time (in code), but I haven't tried. This is a well known bit of Lazarus that still needs to be done.

One of my dreams is to learn enough about FPC/Lazarus to fix this (but it is just a dream at this stage). One of my other dreams is that someone else will beat me to it.

cheers,
John Sunderland

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to