[Lazarus] Creating dbexport component: no icon

Vincent Snijders vincent.snijders at gmail.com
Fri Sep 16 18:25:53 CEST 2011


2011/9/16 Reinier Olislagers <reinierolislagers at gmail.com>:
> On 16-9-2011 16:31, Vincent Snijders wrote:
>> This XML dataset export is only available in fpc 2.7.1, not in 2.5.1, is it?
> Yes, it's available in 2.7.1 but it was put in before the 2.6.0 cutoff:
> http://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/fixes_2_6/packages/fcl-db/src/export/fpxmlxsdexport.pp?view=log
>
>> Then I would do something like
>>> {$IFDEF VER2_6_0}
>>> {$DEFINE HASXMLXSDEXPORT}
>>> {$ENDIF}
>>
>>
>> If it is available in 2.5.1, then
>> {$IFNDEF $VER2_4}
>> {$DEFINE HASXMLXSDEXPORT}
>> {$ENDIF}
> Fair enough. Maybe it's time for some new compiler constants, or
> inequality operators in IFDEFs ;)

What new compiler constants?

Why new inequalite operators? {$IF FPCFULLVERSION > 20500 }, as
mentioned earlier would work ok, don't you think?

> Thanks for the help, Vincent.
> Uploaded as mantis 20275:
> http://bugs.freepascal.org/view.php?id=20275

This comment seems not completely correct:
+// XMLXSDExport unit was introduced in FPC 2.6.0
+// Unfortunately we can't test for 2.6 yet using conditional
+// compilation

1, It is available in a version before 2.6.0: fpc 2.5.1
2. Why can't you test for fpc 2.6.0? OTOH, why do you want to do so?

Vincent




More information about the Lazarus mailing list