[SOLVED] String to TColor issues lazarus / 31-LCL ---------------------------------------------------------------------- JD · 2016-09-16 18:52 Hi there everyone, I'm trying to convert a string to a TColor so that I can use it on a Color button Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ColorButton1.ButtonColor     := StringToColor('clSkyBlue');  But the colour on the button after the StringToColor conversion is not clSkyBlue. It looks closer to brown than blue. What am I doing wrong? JD EDIT: I solved the problem. There was a reassignment in the value of ColorButton1 colour that was causing the problem.