Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array

Status
Not open for further replies.

Jetski5822

Programmer
Joined
Jan 24, 2005
Messages
10
Location
GB
Hi all, sorry this may sound like a silly questions but do you lot know how to create a array of 2 columns but of as many rows as possible....??? or is there an easier way of performing this action?..

Thanks Nick
 
You should read up on ArrayLists class! Thats what you need.

 
hi all i ended up using using System.Collections.Specialized;
it provided exactly what i needed..

NameValueCollection nvcLineDetailsSP = new NameValueCollection();
NameValueCollection nvcLineDetailsEP = new NameValueCollection();

nvcLineDetailsSP.Add(classNode.Handle.ToString(),cdClassElmnt.StartPoint.Line.ToString());
nvcLineDetailsEP.Add(classNode.Handle.ToString(),cdClassElmnt.EndPoint.Line.ToString());

Sorted.. Thanks All :)
 
Yes, but he said he needs unlimited rows, thats not going to work with your code!
 
does NameValueCollection not give unlimited rows?
 
Jetski -- good solution
i was referring to JohnYingling's answer!

You just beat me posting!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top