> I am trying to remove the last letter from a string:
> names.Remove(names.Remove(names.Length - 1, 1))
>
> I get index out of range. What am I doing wrong?
names.Remove(names.Length - 1, 1)

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
shapper - 22 Oct 2007 17:16 GMT
> > I am trying to remove the last letter from a string:
> > names.Remove(names.Remove(names.Length - 1, 1))
[quoted text clipped - 6 lines]
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net
Ooops, sorry ... that what happens when using to many Copy Paste.
Thanks,
Miguel