本文整理自网络,侵删。
ListBox中获取选择行的值
它的代码如下:
代码:
Var Str :String;
begin
Str :=ListBox1.Items.Strings[ListBox1.ItemIndex];
end;
看到了吧?是利用ItemIndex返回一个Integer值给Items的Strings
相关阅读 >>
Delphi判断mssql数据库中表格是否存在? 如何批量创建表格?
Delphi xe7 新的并行库 system.threading
更多相关阅读请进入《Delphi》频道 >>