nico_callewaert wrote:

>
>
> Hi,
>
> I'm reading a huge text file into a dataset.  Is there a way to force
> the operating system to process the message queue from time to time
> during that operation, so the end-user will not have the impresiion
> that windows hangs...
>
> Thanks in advance,
>
> Nico Callewaert


     int LineCount = 0;
     while  (true)
     {
       if (EndOfTheHugeTextFile())
         return;

       ProcessNextTextLine();

       LineCount ++;

       if ((LineCount % 100) == 0)
         Application.DoEvents();
     }


--
Regards
Theo

------------------------
Theo Bebekis
Thessaloniki, Greece
------------------------
Greek_Delphi_Prog : a Delphi Programming mailing list in Greek at
    http://groups.yahoo.com/group/Greek_Delphi_Prog

atla_custom : a Unisoft Atlantis Customization mailing list at
    http://groups.yahoo.com/group/atla_custom
------------------------




Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=662706374


Yahoo! Groups Links

Reply via email to