Subject RE: [firebird-support] Re: Problems with Delphi UDF
Author Leyne, Sean
> > >The DLL file is in the fbserver.exe directory.
> >
> > It should be in the ..\UDF directory.
>
>
> Thanks.
>
> Where can I find a good documentation for Firebird UDF - with Delphi?
>
> For example I would like to return a boolean value, but I didn't find out, how
> to declare the UDF in this case? I would like to use it like this:
>
> select * from TESTDATA where MYFUNC(FIELD1, FIELD2)
>
> instead of
>
> select * from TESTDATA where MYFUNC(FIELD1, FIELD2) <> 0

Have a look in the examples\UDF folder for samples of how it is done in C++.

For Delphi UDF examples, you can Google around, there is source available for some Delphi based UDFs, as well as FreeUDFLib which is ObjectPascal based. These resources should "show you the way".


Sean