Subject | Re: [firebird-support] Re: UDF with string parameter in Terminal Server |
---|---|
Author | Helen Borrie |
Post date | 2007-09-18T01:24:53Z |
>--- In firebird-support@yahoogroups.com, "Gustavo" <gusm@...> wrote:At 10:56 AM 18/09/2007, you wrote:
> > I wrote a simple UDF in Delphi. The code is the following:
> >
> > function MMPruebaString(CualAlias: PChar): PChar;
> > begin
> > Result:=CualAlias;
> > end;
>
>Try out something in ib_udf that works with a string. For example.
>
>DECLARE EXTERNAL FUNCTION substr .....
>
>select substr('Hello World!', 2,5)
>from RDB$DATABASE;
>
>(Yes, this is a deprecated function because you now have substring...such as omitting the cdecl calling convention from the function declaration?
>built into the engine itself, but you can test whether this really is
>a terminal services issue or something about your custom dll).
./heLen