客户端向服务器提交数据(大概几千条或上万条),怎么知道它的进度?
最好用进度条显示......那位高手有这方面的例子?给菜鸟一个,非常感谢!
菜鸟的Email:[email protected]

解决方案 »

  1.   

    就这么简单?
    一定的用到Application.ProcessMessages
    我不知道怎么写,放在哪里?还有当提交数据到服务器的时候,怎样设置数据包的大小?
      

  2.   

    >>就这么简单?
    >>一定的用到Application.ProcessMessages
    >>我不知道怎么写,放在哪里?
    Application.ProcessMessages在你向数据库提交一条后写。
      

  3.   

    在你数据集保存时用 Application.ProcessMessages,这句话必须要用,否则,CPU只提交你的数据而不会在你提交的过程中显示进度,全部提交完了以后才显示为100%.同时在每提交一条计数器加1
      

  4.   

    adoquery1.first;
    while not adoquery1.eof do
    begin
        try
             adoquery1.edit;
             adoquery1.fieldbyname('field1').value=value1;
             adoquery1.fieldbyname('field2').value=value2;
             //…………
             adoquery1.post;    except
            abort;// process Exception
        end;
        application.processmessages;
                
    end;
      

  5.   

    if you use clientdataset,maybe you should choose CallBack function .
      

  6.   

    同意楼上所说在 CDS.ApplyUpdates 过程中,似乎没有什么办法得到进度信息。
      

  7.   

    可以用存储过程调用吗?
    有Application.processmessages,没有过程,在状态条上显示不出来呀!
      

  8.   

    sql语句插入数据,可以添加一条后,进度条+1
      

  9.   

    Your must Add a interface to app Server to provde Applyupdates procedure information.The ApplyUpdates procedure will call the app Server onBeforUpdateRecord Event, this procedure will process the data your applied one by one.but the matter i think is how can you push client by server - Event support over com, you can find some idea to see "Delphi  5 programer guide"(DDG).
      

  10.   

    "在 CDS.ApplyUpdates 过程中,似乎没有什么办法得到进度信息。"
    对呀这样怎么办呢?