本文整理自网络,侵删。
ListBox中获取选择行的值
它的代码如下:
代码:
Var Str :String;
begin
Str :=ListBox1.Items.Strings[ListBox1.ItemIndex];
end;
看到了吧?是利用ItemIndex返回一个Integer值给Items的Strings
相关阅读 >>
Delphi 解决strtodatetime()不是有效日期类型的问题
更多相关阅读请进入《Delphi》频道 >>
本文整理自网络,侵删。
ListBox中获取选择行的值
它的代码如下:
代码:
Var Str :String;
begin
Str :=ListBox1.Items.Strings[ListBox1.ItemIndex];
end;
看到了吧?是利用ItemIndex返回一个Integer值给Items的Strings
相关阅读 >>
Delphi 解决strtodatetime()不是有效日期类型的问题
更多相关阅读请进入《Delphi》频道 >>
管理员已关闭评论功能...