Z zdqyundou Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #1 我要限制Combobox输入的内容为百分比!最大为100%,格式为数字加上百分号,怎么办?
B bjdribllec Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #2 用TSpinEdit好, 在Samples里
N nicai_wgl Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #3 最简单的解决方法:<br>var<br> i:integer;<br>begin<br> for i := 1 to 100 do<br> ComboBox1.Items.Append(inttostr(i)+'%');<br>end;<br>
最简单的解决方法:<br>var<br> i:integer;<br>begin<br> for i := 1 to 100 do<br> ComboBox1.Items.Append(inttostr(i)+'%');<br>end;<br>
B bjdribllec Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #4 1.ComboBox1.Items.Clear;<br>2.for 从 0 开始;
A archonwang Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #5 用format 或者 TSpinEdit 的组合比较好。<br>