Subject Re: [firebird-support] Re: Problem using UDF on Linux
Author Boguslaw Brandys
Martha,

> Thanks heLen for replying..
> It is a function to calculate 'multi' percentage of a given number.
> Examples:
> 10+5+2% * 2500 = 405.25
> --> 10% * 2500 = 250
> --> 5% * (2500-250) = 112.5
> --> 2% * (2500-250-112.5) = 42.75
> --> 250+112.5+42.75 = 405.25 (the result)

If this is so simple function why not trying to make it using C (gcc under
Linux) based on firebird examples and docs ? As I know Kylix is based on
QT and unit Classes probably causes that executable is linked to some
large libraries. Alternatively drop classes (and maybe sysutils) from uses
clause.That's all I can say.


Bogusław Brandys