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

Show boolean as "True" or "False"

edited October 2003 in General
Delphi 5 Enterprise
ReportBuilder 6.02
Advantage Database 7

I need to show a boolean field as "True" or "False" with a TppDBPipeLine. I
know how to do this with a JIT control, but I want to be connected directly
to the database for these reports.

Thanks!

Mike

Comments

  • edited November 2003

    The DBPipeline supports Delphi's TBooleanField.DisplayValues property. If
    the DBPipeline checks whether TBooleanField.DisplayValues is specified then
    it will return the appropriate string value, otherwise it will return a
    boolean value.

    The other option is to write code to format the boolean value yourself.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2003
    Thanks for the response. I got to looking for the DisplayValues property
    and found that all I have to do is to put in the "Display Format" property
    (in the Object Inspector) "False;True" or "Sent;Received" or what ever my
    boolean value represents. Perhaps this is what you are trying to tell me.

    Thanks again,

    Mike


  • edited November 2003

    Yes. :)

    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.