need how proper split string crlf below code:
dim str string = "hello" & vbcrlf & "world" dim parts string() = str.split(controlchars.crlf.tochararray) each part string in parts msgbox(part) next output
hello world i want rid blank space in between two.
hello
world
use
str.split(controlchars.crlf.tochararray(), stringsplitoptions.removeemptyentries) instead.
Comments
Post a Comment