当前位置:主页>delphi技巧/代码下载> 文章内容

怎样用treeview建立三级类别,和显示类别

发布时间:2010-01-20 | QQ免费站
1楼: procedure Tchildform1.ComboBox1Change(Sender: TObject); begin adotable1.TableName:=combobox1.Items.Text; adotable1.Active:=true; end; 当combobox下拉列框放生变化时,tablename没发生变化? 字串2

2楼: 你在combobox.onchange事件中写代码啊 字串1

3楼: adotable1.tablename:=combobox1.text;
字串7

4楼: 你在OnClick事件中试试呀
字串2

5楼: procedure Tchildform1.ComboBox1Change(Sender: TObject); begin adotable1.Active:=false; adotable1.TableName:=combobox1.Text; adotable1.Active:=true; end; 字串3

6楼: adotable.active:=false; adotable1.TableName:=combobox1.Text;(或者adotable1.tablename:=combobox1.items[combobox1.itemindex];) adotable1.Active:=true;
字串3

7楼: 晕哟。 结果combobox1.text就行了。 [:(!][:(!][:(!] 字串6

8楼: 多人接受答案了。 字串2