procedure TMainForm.ComboBox1Select(Sender: TObject);
begin
if ComboBox1.SelText=''then
ShowMessage('到底有没有选择什么东西啊!');
end;
我在组合框Combobox1选择一项,为什么Seltext老是空,而不是我选择的项呢?
begin
if ComboBox1.SelText=''then
ShowMessage('到底有没有选择什么东西啊!');
end;
我在组合框Combobox1选择一项,为什么Seltext老是空,而不是我选择的项呢?
感觉seltext属性没用啊,望高人指点啊!