VB.Net Iterate through two listboxes -


i'm trying iterate through 2 listboxes , adding items 1 list. here's code far can't seem integrate second listbox it.

dim list list(of string) = new list(of string) each lb1 string in listbox1.items      list.add(vbtab + vbtab + "ent = maps\mp\_utility::createoneshoteffect(" + """" + lb1.tostring() + """" + ");" + vbcrlf +      vbtab + vbtab + "ent.v[ " + """" + "origin" + """" + " ] = ( " + lb2.tostring() + " );" next 

as long lb1 , lb2 both contain same number of items , both ordered same, use indexed loop (instead of foreach loop):

dim list list(of string) = new list(of string)  x integer = 0 listbox1.items.count - 1     list.add(vbtab + vbtab + "ent = maps\mp\_utility::createoneshoteffect(""" + _         listbox1.items(x).tostring() + """);" + vbcrlf + _         vbtab + vbtab + "ent.v[ ""origin"" ] = ( " + _         listbox2.items(x).tostring() + " );" _     ) next 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -