Delphi 获取ListBox1的行值


本文整理自网络,侵删。

 ListBox中获取选择行的值 
它的代码如下:
代码:
Var Str :String;
begin
Str :=ListBox1.Items.Strings[ListBox1.ItemIndex];
end;




看到了吧?是利用ItemIndex返回一个Integer值给Items的Strings

相关阅读 >>

Delphi 判断文本文件的编码格式

Delphi 检测一个网络连接是否有效带超时

Delphi判断系统是否64位

Delphi 获取指定年月的周、日数 -weeksinayear、weeksinyear、daysinayear、daysinamonth、daysinyear、daysinmonth

Delphi遍历文件目录

Delphi中的字符串分割

Delphi 隐藏进程代码

Delphi 用 tbytesstream 类实现的读文件为十六进制字符的函数

Delphi strutils.reversestring - 翻转字符串

Delphi 每年、月、周、日的开始与结束的时间startofayear … startoftheyear … endofayear … endoftheyear

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...