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

Using a hex value in rap code

edited February 2005 in General
Hi all

Probably a very easy question..

In rap code i can for instance use Label1.Color := clRed but Label1.Color :=
$0080FFFF doesn't work, when i compile the report code i get an error on the
$ char.

Is it possible?

using Delphi 7 Ent with Reportbuilder server 7.03

Thanks

Franky

Comments

  • edited February 2005
    Hi Franky,

    Unfortunately hexidecimal numbers are not supported in RAP. You will either
    need to use the decimal representation, built-in name such as "clRed", or
    create a pass thru function to handle these values.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2005
    Franky,

    Best we found was using the built-in RGB function.

    Label1.Color := RGB(128,255,255); {$80FFFF}

    Thanks,

    Brett

  • edited February 2005
    Ok, thanks Nico & Brett

This discussion has been closed.