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

DisplayFormat Issue

edited August 2005 in Component Writing
When I wish to display a datafield with the content of "1.0001", I seem to
be getting "1 .0001". I am not sure what I am doing wrong. I have the
display format set to "#####0.#####". Can anyone give me some hints?

Thanks,

John Solomon

Comments

  • edited August 2005
    Hi John,

    ReportBuilder uses the Delphi function FormatFloat when handling the display
    format of numeric data types. The reason the display format you entered is
    not working as expected is that your data field must be a text field of some
    sort. ReportBuilder uses the FormatMaskText function to handle the display
    format of text fields (see the FormatMaskText topic in the Delphi help).
    Try using the following display format instead...

    #####0#####;0

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.