It definately has to be a dynamic array. In many other respects a dynamic
array is treated the same way as a string (eg. SetLength, Copy...) but not
Delete :-(
Luke Pascoe.
> -----Original Message-----
> From: Nahum Wild [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 6 April 2001 11:29 a.m.
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Dynamic arrays
>
>
> 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"
>
---------------------------------------------------------------------------
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"