Convert Interbase Blob to Text
Hi,
I need to write a code like this:
lblTitle.visible = MYPIPELINE['SOMEBLOBFIELD'] <> '';
SOMEBLOBFIELD is a interbase text blob field (BLOB SUB TYPE 0). It is not
working, it seems that the conversion to string will always result in ''. I
worked arround by putting a TppDBMemo, setting it's visibility to false and
using the dbMemo.Text, but I wonder if is there any other more elegant way
to do that.
Thank you in advance.
--
-----
Ricardo Acras
Acras Desenvolvimento de Sistemas
www.acras.net
ricardo@acras.net
+41-223-9109
+41-9974-3201
+42-9108-5672
I need to write a code like this:
lblTitle.visible = MYPIPELINE['SOMEBLOBFIELD'] <> '';
SOMEBLOBFIELD is a interbase text blob field (BLOB SUB TYPE 0). It is not
working, it seems that the conversion to string will always result in ''. I
worked arround by putting a TppDBMemo, setting it's visibility to false and
using the dbMemo.Text, but I wonder if is there any other more elegant way
to do that.
Thank you in advance.
--
-----
Ricardo Acras
Acras Desenvolvimento de Sistemas
www.acras.net
ricardo@acras.net
+41-223-9109
+41-9974-3201
+42-9108-5672
This discussion has been closed.
Comments
Try the following
lsFieldValue := myPipeline.FieldObjects['SomeBlobField'].AsString;
The myPipeline.FieldObjects[] provides access to the TppField object. The
TppField object has an AsString function.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Once again, worked perfectly.
Thanks.
Ricardo