Zitat von Andrea Mauri <[email protected]>:

> Dear all,
> when I put a csvexporter on a form lazarus automatically adds to my
> project lazdbexport unit if I am under windows and fpccsvexport if I am
> under Linux.

I didn't try cvsexporter myself.
Correct me if I'm wrong: When you drop a cvsexporter component onto a form, the
IDE adds a unit. And this unit is different on windows and linux?

If yes, then yes, you have to do the below.

> So I have to do this:
>
>   {$IFDEF WINDOWS}
>   lazdbexport;
>   {$ENDIF}
>   {$IFDEF UNIX}
>   fpcsvexport;
>   {$ENDIF}
>
> Is it ok?

... although IMO the package should be restructured, so that the IFDEFs go into
the package instead of to the using code.


Mattias

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to