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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two dimentional array from listbox - newbie question

Status
Not open for further replies.

eraH

MIS
Dec 1, 2003
106
NZ
I have a listbox as follows, columns will always be the same amount, rows are a random amount:
Code:
a    b    c
d    e    f
g    h    i
I currently use a foreach loop to split each line by the tab character, then write the seperate parts to different parts of a text file.

I want to write the listbox to a two dimentional array so that I can do a bit or sorting first but I have no idea how to do it logically.


Here is my code in all it's gory detail

Thanks in advance.
 
Try using a ListView instead. The sorting will be much easier, although the listViews are a pain with Sub Items.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top