请问一下,
      tablename:=trim(treeview1.Selected.Text);
       liststring:=TStringlist.Create;
       ADOConnection1.GetTableNames(liststring,False);
这段代码在ADOConnection1连access就好使,而ADOConnection1连oracle就不好使,为什么,根本就读不出表名,count=0,为什么

解决方案 »

  1.   

    在连access时是单机数据库,连它可以,连oracle不一定好使,你为什么不用adoconnection1.concectionstring我都是用它来连接远程数据库的,也可以动态赋值,推荐
      

  2.   

    我是用adoconnection1.concectionstring连的ORACLE,之后用 ADOConnection1.GetTableNames(liststring,False);来获得表名,但取不出,为什么?
      

  3.   

    Using the ListView Items editorThe ListView Items editor contains an Items group box with an Items list box, a New Item button, a New SubItem button, and a Delete button. When you first add a listview control to a form, the Items list box is empty and the New SubItem and Delete buttons are disabled. When you enter or change item properties for a selected item, the Apply button is enabled so that you can activate changes immediately.The ListView Items editor also contains an Item Properties group box for setting the properties of the listview item currently selected in the Items list box. The Item Properties group box contains a Caption edit box, an Image Index edit box, and a State Index edit bo
      

  4.   

    问题解决了,我花了另一种方法,可能就是oracle库不认gettablename这个函数吧,那位高手知道具体情况的话,麻烦留言.谢谢