I need to find the length of the items in a array

  • Thread starter Thread starter jed
  • Start date Start date
J

jed

I want to insert a value in an array using a textbox.And i need to
find the index of the last item in the array.
Please help i am a newbie.thanks
 
I want to insert a value in an array using a textbox.And i need to
find the index of the last item in the array.
Please help i am a newbie.thanks

You can't insert into an array - arrays have a fixed size. If you use
an ArrayList or List<T> (the latter only being for .NET 2.0 and
higher) you can just call Add.

If this isn't what you're after, please provide more information.

Jon
 
I want to insert a value in an array using a textbox.And i need to
find the index of the last item in the array.
Please help i am a newbie.thanks

In place of array use ArrayList
it it available in System.Collections
and u can check the index by using ArrayList.Items.Count property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top