Bram Kuijvenhoven ha scritto:
Alvise Nicoletti wrote:
How do I use the SQLdb component without graphical interface? I just have to do the same commands without putting the graphical component on the project?

You can create the components in code, e.g.

 Conn := TMySQL50Connection.Create(nil);
 Qry := TSQLQuery.Create(nil);

(Do not use TMySQL50Connection.Create;)

And of course don't forget to put SQLdb, DB and MySQL50Conn in your uses clause.

Regards,

Bram

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



Thank you for the tips.

However I'm experiencing a strange issue here...

On windows with a graphical application lazarus created just the commands you wrote there, on linux with a non-graphical application I'm not compiling the same code. With control+space on windows TMySQL50Connection is listed including those units on the "uses" row, on linux I included the same units but TMySQL50Connection is not recognized.

I found some corrispondences on the "sqldb" component, including that I got both "TSQLConnection" and "TSQLQuery" but I suppose theyre different things... (from the ones you showed me).

However: how difficult can it be to install zeos on lazarus for linux?
I prefer to use "light" libraries like I did in the past and I like SQLdb... however i need to be sure that all works and it's stable...

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

Reply via email to