Diwakoe schreef:
On 4/12/07, Vincent Snijders <[EMAIL PROTECTED]> wrote:
The component works, the codetools (and therefore the code completion)
doesn't.
A macro was used for the type declaration and the code tools cannot
handle that.
{$DEFINE TConnectionName:=TMySQL50Connection}
type
TConnectionName = class (TSQLConnection)
// etc
end;
Hi Vincent,
So where I can put this code to activate the macro for code completion
can work with this component?
To activate it, you have to write support for macros in the codetools.
See component/codetools for the source. See
http://wiki.lazarus.freepascal.org/Creating_A_Patch for how to send the
patch to us, so we can see if we can incorporate it in the lazarus sources.
I can imagine writing this support takes a while. If you use only one
kind of connection, you might want to try to do the replacement manually
in the fpc sources: Replace all occurrences of TConnectionName by
TMySQL50Connection. Do the same for the other macros defined in the same
place as TConnectionName.
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives