Re: Setting the color property with a Hex string...


Posted by BlackAx on March 23, 2000 at 07:24:21:

In Reply to: Setting the color property with a Hex string... posted by BlackAx on March 23, 2000 at 06:48:22:

Nevermind... got it, thanks! :o)


: I have a string variable containing a hex value that I want to use to set the color of a control.
: Example:
: blah:= '$00C0CCCC';
: Object.Color:= blah;

: Since the value for Object's color property is of type TColor, i naturally get an
: 'icompatible types: TColor and TString' error... Yet if i hardcode it as such:
: Object.Color:= $00C0CCCC;
: it works just fine... how or WHAT do i change the string to to pass it to the Color property?

: Thanks in advance, folks!




Related Articles and Replies: