Subject Re: [firebird-support] Re: Udr GenRows sample Pascal
Author livius
Hi,

what kind of buffer?
I have tried:
ss: Array[0..199] of Char;
ss: Array[0..199] of Byte;
ss: Array[0..199] of AnsiChar;
ss: String[200];

with last string[200] i got result prefixed with size byte

regards,
Karol Bieniaszewski


-----Oryginalna wiadomość-----
From: Dimitry Sibiryakov sd@... [firebird-support]
Sent: Monday, May 14, 2018 11:06 PM
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Re: Udr GenRows sample Pascal

14.05.2018 22:18, 'livius' liviuslivius@... [firebird-support]
wrote:
> maybe this is wrong?
> GenIntOutMessage = record
> result: Integer;
> resultNull: WordBool;
> ss: PAnsiChar;
> ssNull: WordBool;
> end;


Yes, this is wrong. Buffer must contain real data, not pointers to them.

--
WBR, SD.


------------------------------------

------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu. Try FAQ and other links from the left-side menu
there.

Also search the knowledgebases at
http://www.ibphoenix.com/resources/documents/

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------

Yahoo Groups Links