howto manage a memo field

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
fcodebue
Junior Boarder
Junior Boarder
Posts: 32
Joined: 05.04.2008, 16:02
Contact:

howto manage a memo field

Post by fcodebue »

I create in firebird a text blob field:
BLOB SUB_TYPE 1 SEGMENT SIZE 80 CHARACTER SET NONE
COLLATE NONE
and I wanna read it into n lines of 25character per line.

how I can do it?
Codebue Fabio
P-Soft - http://www.p-soft.biz
Firebird La Comunità Italiana - http://www.firebirdsql.it
GestionaleOpen - http://www.gestionaleopen.org
sfxcc
Senior Boarder
Senior Boarder
Posts: 95
Joined: 13.05.2010, 18:48

Post by sfxcc »

Use the createblobfield function.
var
aBlob : TBlobField;
begin
aBlob := TBlobField.Create(Field,Mode);
aBlob.Write();
aBlob.Read();
end;

But the best is to create a function to read and other to write and the parameter is (aBlob:TBlobField;var Value:string) : Boolean;

This could help you a bit.

:)
where's the code ..
Post Reply