Jan 22, 2003 #1 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 !
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 !
Jan 22, 2003 #2 BTecho Programmer Dec 7, 2002 108 US Hi there str:=clRed; canvas.pen.color:=StringToColor(str); Upvote 0 Downvote
Jan 22, 2003 #3 wyjkmsc Programmer Dec 2, 2002 15 CN var str:String; begin str:='clRed'; canvas.pen.color:=StringToColor(str); end; Upvote 0 Downvote
Jan 23, 2003 #4 BTecho Programmer Dec 7, 2002 108 US Ah yes so I forgot to put quote aroung clred str:='clRed'; Upvote 0 Downvote