Just write down the following...
.
.
try
   yourComplexFunction();   //that takes long time to process...
   ......
   ......
   Application.ProcessMessages;
finally
   ....
end;

in the above case you need not to make loops. and it will also 
optimize your code to speed.

Thanks

Iqbal

Reply via email to