Thursday, 8 August 2013

how to get the total number parts in string split

how to get the total number parts in string split

assume in a text box a user input a string like this:
part1,part2,part3,part4.........partn
how to get the total number of parts of that string
I tried using
dim part() as string = textbox1.text.split(",")
but I do not know how to get the total number of parts

No comments:

Post a Comment