Page 1 of 1

howto manage a memo field

Posted: 17.10.2010, 15:22
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?

Posted: 18.10.2010, 13:43
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.

:)