convert AnsiString to TGraphicsColor? lazarus / 61-Beginners ---------------------------------------------------------------------- Trenatos · 2015-08-17 18:38 I'm grabbing a color out of a string using extractword, and need to use it as a color reference. I found an example using clRed, but I can't figure out how to take that AnsiString and turn into a proper color reference. ---------------------------------------------------------------------- wp · 2015-08-17 18:46 in graphics.pp: Code: [Select]function StringToColor(const S: shortstring): TColor; function StringToColorDef(const S: shortstring; const DefaultValue: TColor): TColor; ---------------------------------------------------------------------- Trenatos · 2015-08-17 18:52 Perfect, works like a charm, thanks wp