On Fri, 13 Oct 2006 09:17:07 +0200
Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> On Fri, 13 Oct 2006 07:51:54 +0700
> Diwakoe <[EMAIL PROTECTED]> wrote:
>
> > Dear all,
> >
> > I get error when using auto complete on lazarus (ctrl+space) with
> > TMySQL50Connection component in form. All component is working
> > properly (can connect to mysql 5 server on design mode) but error
> > occur when I add one button and want to add code into onclick button
> > like this:
> >
> > unit1.pas(17,13) Error: identifier not found: TMySQL50Connection
>
> Can you post a small example?
Thanks.
fpc uses macros to define TMySQL50Connection
in fpc/fcl/db/sqldb/mysql/mysqlconn.inc
The IDE does not support macros.
Add the following 3 lines in front of the TForm1 class
type
TMySQL50Connection = mysql50conn.TConnectionName;
TMySQL50Transaction = mysql50conn.TTransactionName;
TMySQL50Cursor = mysql50conn.TCursorName;
I don't understand, why the fpc unit contains macros instead of those
lines above.
> > The compilation process is fine with no error. Is there any lib
> > which I have to add on fpc.cfg ? I'm using lazarus v0.9.18 on FC5.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives