![]() |
Remove Items from List Box
Hi,
what is the best way of removing multiple items from a list box found in another list box. Foreach does not allow you to modify itself Looping through has index issues. Other than copying to new instance what gives? thanks, Lit |
Re: Remove Items from List Box
Inline...
"Lit" <sql_agentman@hotmail.com> wrote in message news:upw0aJ%23zHHA.5948@TK2MSFTNGP03.phx.gbl... > Hi, > > what is the best way of removing multiple items from a list box found in > another list box. > > Foreach does not allow you to modify itself Why not? > Looping through has index issues. Only that you have to use 2 indexes. > Other than copying to new instance what gives? Nothing, it just sounds like you don't want to do what is needed. |
Re: Remove Items from List Box
Hi Scott,
You don't understand at all, or have no clue what the problem is. Try a foreach and delete from the collection itself. It does not work. It looks like the selected item approach will do it thank you for your time Lit "Scott M." <s-mar@nospam.nospam> wrote in message news:ub$kbo%23zHHA.1204@TK2MSFTNGP03.phx.gbl... > Inline... > > > "Lit" <sql_agentman@hotmail.com> wrote in message > news:upw0aJ%23zHHA.5948@TK2MSFTNGP03.phx.gbl... >> Hi, >> >> what is the best way of removing multiple items from a list box found in >> another list box. >> >> Foreach does not allow you to modify itself > > Why not? > >> Looping through has index issues. > > Only that you have to use 2 indexes. > >> Other than copying to new instance what gives? > > Nothing, it just sounds like you don't want to do what is needed. > |
| All times are GMT. The time now is 05:20 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.