try

var
  S :String;
begin
  S := '#'+IntToHex(Color,6);
end;

I'd try down that road anyway... However I think HTML colors are
RGB and tcolor is either BRG or BGR (I forget which since I always
use constants ;))...

You should still be able to convert the hex digits via shifting and masking (SHR and 
AND)

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to