Guys,
I already add the code Mattias said, the auto complete is working
fine, but there is an error like yesterday "unit1.pas(13,36) Error:
Identifier not found "TConnectionName"
" pointed to "mysql50conn.TConnectionName;" when compiling the project.
Do I need to add another lines code to remove this error?
Thanks,
Diwa
On 10/17/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
On Tue, 17 Oct 2006, Mattias Gaertner wrote:
> 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.
Check the code again :-)
Because the purpose of this include file is to define TConnectionName.
It does exactly the opposite of what you do.
The include file is included by the 3 units mysql50conn mysql41conn mysql40conn
and through the macros defines the TMySQL{50/40/41}Connection classes...
Michael.
> Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives