Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Convert Interbase Blob to Text

edited September 2005 in RAP
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

Comments

  • edited September 2005

    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
  • edited September 2005
    > Try the following

    Once again, worked perfectly.
    Thanks.

    Ricardo
This discussion has been closed.