如何获取TListBox选定一行的值(字符串)? 如何获取TListBox选定一行的值(字符串)? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.Button1Click(Sender: TObject);var s :string;begin s := ListBox1.Items.Strings[0]; showmessage(s);end; 更正下,选定行可以是:procedure TForm1.Button1Click(Sender: TObject);var s :string;begin s := ListBox1.Items.Strings[ListBox1.ItemIndex]; showmessage(s);end; 就这个ListBox1.Items.Strings[ListBox1.ItemIndex]; 如何查询2个表的数据---Sql语句的问题 请教:如何实现这种截图? 添加数据 Delphi的代码编辑器在XP下选用Courier New字体后汉字显示非常难看,怎么解决? 工程文件丢失 Delphi 中可以操纵 SHEll 吗? 如何抓取屏幕??使占用内存最小,抓取速度最快??可能要用的directx的知识。 招兼职,要求会DELPHI6.0 + Fastreport4.0,人在杭州 为什么替是这样的问题,迷茫? 提个问题:我想走但得提前一个月辞工,我该怎么办? delphi调用crystal report问题 一次更新多表时,如果防止程序中断,造成数据不统一
var
s :string;
begin
s := ListBox1.Items.Strings[0];
showmessage(s);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
s :string;
begin
s := ListBox1.Items.Strings[ListBox1.ItemIndex];
showmessage(s);
end;