Herfried
Mon May 05 10:02:15 CDT 2008
"cmdolcet69" <colin_dolcetti@hotmail.com> schrieb:
> > I have an arraylist of for example 1200. I want to re organize the
> > array so that position 1 on the arraylist if actaully now position 3
> > and i want to add 3 position before position 3 and at the end of the
> > arraylist. Can i use the Redim statement?
>
> The benefit in using an Arraylist is that you do _not_ have to (and
> can't) ReDim anything. Use the Add/Insert/Remove/RemoveAt methods to
> add/remove items. In VB 2005 and above, there are several additional
> Generic lists, like List(Of T).
>
>How can i add in 3 position at the start???
Take a look at 'ArrayList.Insert'.
--
M S Herfried K. Wagner
M V P <URL:
http://dotnet.mvps.org/>
V B <URL:
http://dotnet.mvps.org/dotnet/faqs/>