V volcanosh Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-06 #1 ★如何将字符串转换为Tcolor类型,比如我读取文本中的green,red等,如何将它赋值给label的color属性?
T tonmy Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-06 #2 if trim(edit1.Text) ='green' then label1.Font.Color :=clgreen else if trim(edit1.Text )='red' then label1.Font.Color :=clred;
if trim(edit1.Text) ='green' then label1.Font.Color :=clgreen else if trim(edit1.Text )='red' then label1.Font.Color :=clred;