.net - how to get the total number parts in string split -


assume in text box user input string this:

part1,part2,part3,part4.........partn 

how total number of parts of string

i tried using

dim part() string = textbox1.text.split(",") 

but not know how total number of parts

 var count = textbox1.text.split(",").count(); 

or

var count = textbox1.text.split(",").length; 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -