listbox1.Items.Strings[listbox1.ItemIndex];
解决方案 »
- Delphi7有没有自带报表控件呢?
- 无法处理双击事件,该怎么办?
- 怎么判断用ShellExecute打开或执行的文件关闭了?高分请教
- 我的程序用到了ADO,并用msjet读dbf文件,用wise打包后,在干净的win98下安装,运行时出错
- 请大家表意见!ADO联接与BDE联接数据库......(欢迎参于)
- ★★★CSDN结贴联盟第7次信誉提问!!★★★
- 報表統計問題?急!急!急!
- 求救:有关DLL的使用!请进!
- 用Delphi的QuickReport动态制作--流水式报表
- 大家有没有对自己的程序失去过信心的时候啊,我失去信心了,问的问题有没有人可以解决!呜呜!
- 两个listbox!
- 初学者问题,请进来捡分
if ListBox1.Items[i].selected then edit1.text := ListBox1.Items[i];
begin
try
Edit1.Text := ListBox1.Items.Strings[ListBox1.ItemIndex];
except
end;
end;
begin
Edit1.Text := ListBox1.Items.Strings[ListBox1.ItemIndex];
end;上面那位,应该可以不用try函数吧?!
If ListBox1.ItemIndex<>-1 Then
Edit1.Text:=ListBox1.Items.Strings[ListBox1.ItemIndex];