Alistair asked:

> Here is a routine which seems to run really slowly - any ideas why? and if so,
> what suggested solution tks, Al+
>
>   with FileListbox.Items do
>    begin
>   label1.caption:='Process - adding qualifiers';
>      beginupdate;
>      for I := 0 to FileListbox.items.count-1 do
>           Strings[i]:=Strings[i]+'\*.*';
>      endupdate;
>   end;

Is it just as slow when adding items to *any* TStringList, or only to
a TFileListBox.Items array. If the latter, suspect that it is doing
processing (e.g. disk scanning) at each change, and look at either
your design or the object's source to see if you can bypass this
step.

cheers,
peter

===========================================
Peter Hyde, SPIS Ltd, Christchurch, New Zealand
* TCompress/TCompLHA component sets for Delphi/Kylix/C++
* TurboNote+: http://TurboPress.com/tbnote.htm
  -- top-rated onscreen sticky notes
* Web automation for online periodicals: http://TurboPress.com
Find all the above and MORE at http://spis.co.nz


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to