vb.net - how can i make a loop of data having in listbox in vb? -
i have listbox having value of integer . want make 2 loop
while objreader.peek() <> -1 textline = objreader.readline() words = textline.split(new char() {","c}) listbox1.items.add(words(3) & "," & words(4)) loop integer = 0 listbox1.items.count - 1 dim tempstr = listbox1.items.item(i) tempstr = listbox1.items(i) value = tempstr.split(","c) data= value(0) next
i want make 2 datalist
- remove first item of value1
- remove last item of value1
you can take loop . in first got value first last -1 in sec got second(with out first) last 1
j integer = 0 listbox1.items.count - 2 dim first = listbox1.items(j).tostring dim sec = listbox1.items(j+1).tostring next
i think sloves problem
Comments
Post a Comment