954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Listbox Items as an array

How can i save items in a listbox as an array? Is it possible?

Naters_uk
Junior Poster in Training
50 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

I tried writing this in asp.net, (vb.net as background codes)
Dim nameArray(5) as string //make room for 5 elements in the array
Dim i as Integer

For i = 0 to Listbox1.Listcount -1
nameArray(i) = Listbox1.list(i) // assign a name to each index in the array
next


But ASP.NET cannot accept .list , help?

Naters_uk
Junior Poster in Training
50 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You