Title: Message
While I don't know (don't use arrays often personally - especially when I need to search for things) but if you did that, it'd be interesting to know it could counter match the first 3 chars of the item at index 4 and the last 2 chars of the item at index 3. 
Also what the index actually was of the search item.
 
Guess the array elements would have to be all the same size for that to work and make it possible to get the actual index as well.
 
Personally I prefer a TStringList or custom sort added to a TList.
 
Also if the array is relatively small (around 30 elements), scanning the array has a minmal penalty.
-----Original Message-----
From: Ross Levis [mailto:[EMAIL PROTECTED]
Sent: 3 June 2004 3:03 PM
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] "IN" an array?

Just curious.  Since arrays occupy contiguous memory space, would there be a way of testing the whole array as one large string, and use the pos function?
 
Ross
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to