Subject Re: UDF does not work
Author Andrew Monteith

All the examples I have seen use cstring, I assume it has something
to do with the calling convention of C Functions. The reason the
second parameter is used, is so that Firebird can free the memory
created by the output parameter.

One other gotcha I came across is that if you want to pass an
Integer to a function it must be 'var' parameter.


--- In, "supertokkie" <martinstuij@c...>
> Hi Andrew,
> Thanks for your help. Your example works.
> But I have some questions.
> Why have I to use a second input parameter? Normally I need only
> input parameter and one result parameter.
> And why have I to use CSTRING(..) in stead of VARCHAR?
> Martin