读取delphi中combobox控件下选中的内容
请问如何读取delphi中combobox控件下选中的内容,比如我下拉列表有江苏、上海、北京,当选中其中一个怎么把它读出来?
var
i:string;
begin
i:=combobox1.Items.text;
showmessage(i);
end;
这个读出全部内容了
[解决办法]
combobox1.text
发布时间: 2012-03-18 13:55:39 作者: rapoo
读取delphi中combobox控件下选中的内容
请问如何读取delphi中combobox控件下选中的内容,比如我下拉列表有江苏、上海、北京,当选中其中一个怎么把它读出来?
var
i:string;
begin
i:=combobox1.Items.text;
showmessage(i);
end;
这个读出全部内容了
[解决办法]
combobox1.text