hex Color Value (string) to TColor

From: Epema (c.epema_at_chello.nl)
Date: 12/24/03


Date: Wed, 24 Dec 2003 11:00:38 GMT

Hi,

I tried to figure out how to read a string value into
the color property of a component:

strColor:='$FFFFFF';
Label1.Color:=strColor;

=Error: Incompatible Types TColor and String;

Due to the objective of my application I cannot read the Color Value from a
ColorBox component directly into Label1.Color...So,
Label1.Color:=ColorBox.Selected; is not allowed...

Does anyone have a workaround for this problem?

Kind regards, Kees Epema