Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Vs Tcolor Problem....

Status
Not open for further replies.

BxyzB

Programmer
Jan 21, 2003
9
IL
Hello all !

ok , i have string that hold a color string;
str:=clRed;

how can i use it on Tcolor like
canvas.pen.color:=str ... ?

i need to use case ?

thanks !
 
Hi there



str:=clRed;

canvas.pen.color:=StringToColor(str);
 
var
str:String;
begin
str:='clRed';
canvas.pen.color:=StringToColor(str);
end;
 
Ah yes so I forgot to put quote aroung clred :)

str:='clRed';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top