The delete method is used to manipulate strings, so its complaining about
you passing something other than a string as the first paramater. Depending
on what type your array is you could always use a TList or even a
TStringList?? TStringLists are all good!
Cheers,
Nahum.
> -----Original Message-----
> From: Luke Pascoe [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 11:31 AM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Dynamic arrays
>
>
> Simple one for ya:
> Delete(MyDynArray, MyIndex, 1);
> That doesn't work. "Incompatible types" where MyDynArray is.
>
> How do I remove an element from the middle of a dynamic array?
>
> Luke Pascoe.
> --------------------------------------------------------------
> -------------
> 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"
>
---------------------------------------------------------------------------
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"