A beginners Pascal question here:
Is there a better way of doing this?
If (Extension='.wav' or Extension='.mp3' or Extension='.ogg') then ...
Is there something similar to a Set I can use that would let me write
something like this?
If Extension in AudioFiles then ...
I tried Pos(Extension,AudioFiles)>0 but an extension of '.w' would also
be true.
Another question. Is it quicker to add many items to a TStringList
unsorted and then Sort it; or set Sorted True & sort each item as it is
added? Or is there no difference?
Cheers,
Ross.
---------------------------------------------------------------------------
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/