471,334 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

saving all selected values in a listbox

I'm trying to save all the selected items in a listbox, but I'm not sure how
to do it.
If I use the code:

ar(i2) = lstOperatingArea.SelectedValue(i2)

(where ar is declared as
dim ar(lstBox.SelectedItems.Count) as string

when I hover over 'selectedValue' the correct value displays, but the value
saved to ar(i2) is the 1st letter of the SelectedValue string, instead of the
entire thing...next loop selects the next letter...
What am I doing wrong here?
Thanks in advance!

Jul 21 '05 #1
0 762

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Vipin Kedia | last post: by
4 posts views Thread by Justin | last post: by
8 posts views Thread by Vipin Kedia | last post: by
2 posts views Thread by John | last post: by
3 posts views Thread by Mitch | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.