我是一名新手,请问一下listbox中怎么样引用当前选中的值
问题点数:10、回复次数:5Top
1 楼cow8063(天涯远不远?不远!人在天涯,天涯怎会远)回复于 2001-12-17 16:28:13 得分 0
急呀。正要做呢,帮解决一下吧。Top
2 楼zswang(伴水清清)(专家门诊清洁工)回复于 2001-12-17 16:31:27 得分 0
ListBox1.ItemIndexTop
3 楼tastenet(速效揪心完)回复于 2001-12-17 16:32:38 得分 5
listbox1.Items.strings[listbox1.ItemIndex];Top
4 楼zswang(伴水清清)(专家门诊清洁工)回复于 2001-12-17 16:33:24 得分 5
procedure TForm1.Button1Click(Sender: TObject);
begin
if ListBox1.ItemIndex >= 0 then
ShowMessage(ListBox1.Items[ListBox1.ItemIndex]);
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~就是它
end;
Top
5 楼zghbig(小猪猪)回复于 2001-12-17 17:28:04 得分 0
呵呵,有人问这个问题??!!Top




