Ross,

If the elements in the array are not too large, then there is no benefit in
going to an array of pointers or TList.  TCollection only adds more
overhead.  Elements in a Dynamic array are always stored in contiguous
memory block - think of a string as being a special case of dynamic array
with each element a Char type.

The other consideration is why you would want to sort the array - is it for
display, or is it for easier retrieval?  What is the sort key?  Is it easier
to put the keys into a TStringList using AddObject, with the index of the
element as the "object" pointer, and sort the string list?

Dennis.

----- Original Message -----
From: "Ross Levis" <[EMAIL PROTECTED]>


MessageTList has a Sort method.

  ----- Original Message -----
  From: Jeremy Coulter


  what about a TCollection?
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to