Woo...cool !! yes I am using D7 as it happens.
Will take a look again when I get home.

Jeremy

-----Original Message-----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Thu, 3 Jun 2004 17:21:16 +1200
Subject: RE: [DUG] "IN"  an array?

> If you are using D7 and you are talking about array of strings, then
> you are in luck. There is a function called AnsiIndexStr() that can
> search for a string in an array of strings, case-sensitive, or
> AnsiIndexText(), case-insenstitive.
>  
> Cheers,
> Kuet-Fung
> 
> -----Original Message-----
> From: Ross Levis [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 3 June 2004 17:03
> 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.
> 
> ----- Original Message ----- 
> From: [EMAIL PROTECTED] 
> To: [EMAIL PROTECTED] 
> Sent: Thursday, June 03, 2004 4:39 PM
> Subject: RE: [DUG] "IN" an array?
> 
> you'll have to iterate the array and check each value for a match
>  
> something like ::
>  
> for i := low(myArray) to high(myArray) do
>   if myArray[i] = iValue then
>   begin
>     // match found
>     break;
>   end;
>  
> IN is a set operator.
> 
> 

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to