procedure TMainForm.ComboBox1Select(Sender: TObject);
begin
if ComboBox1.SelText=''then
ShowMessage('到底有没有选择什么东西啊!');
end;
我在组合框Combobox1选择一项,为什么Seltext老是空,而不是我选择的项呢?
...全文
571打赏收藏
有关组合框的seltext属性的问题
procedure TMainForm.ComboBox1Select(Sender: TObject); begin if ComboBox1.SelText=''then ShowMessage('到底有没有选择什么东西啊!'); end; 我在组合框Combobox1选择一项,为什么Seltext老是空,而不是我选择的项呢?