Delphi垃圾吗,连建个索引都不行?用Table.AddIndex()方法!
需上机通过验证代码!

解决方案 »

  1.   

    分太多了,我接,你为什么用 table.
    而不用query,with query do
    begin
    active:=false;
     sql.add('select * from table order by bh');
    active:=True;
    end;
      

  2.   

    不行,必须用Table.AddIndex()方法,Delphi提供这个方法,肯定可以使用。
    我连的是单机的DBF表,需要这样做!
      

  3.   

    你看看DELPHI的帮助文件,看是怎么做的,我想应该是有解决办法的
      

  4.   

    Is there no body can answer the question?
    我试出来不行啊,Delphi 6.0环境,Windows2000 or Windows98,
    系统有Visiual Studio 6.0.
      

  5.   

    with table1 do
        begin
          Close;
          table1.AddIndex('tempindex','numbers',[]);
          showmessage('ok');
        end;环境delphi6,win2000,access2000。小心调试,肯定可以。
    肯定有大意的地方。