vb.net - Reading seperate integers in a line -
i have line of text , integers this: text 10 9 8
my code far reads integers this:
1
10
109
1098
my code:
dim total string x = 0 listbox1.items.count - 1 each ch char in listbox1.items(x) if char.isdigit(ch) total = string.concat(total & ch) listbox1.items.add(total) end if next next
i want code read integers this:
10 9 8
thanks
try this. idea good, added items.add
@ wrong point.
dim total string x = 0 listbox1.items.count - 1 each ch char in listbox1.items(x) if char.isdigit(ch) total = string.concat(total & ch) end if next listbox1.items.add(total) next end sub
Comments
Post a Comment