you will need to delare an array
everymember of an array will have a part of a splitted text
Code:
Dim Text() as string
text = microsoft.visualbasic.split("hello world", " ")
' as u can c it will split it by a space
'now text(0) will have the hello word
'and text(1) will have the world word
Enjoy!!
You don't need to use the split function from the legacy VB. All strings have the Split method which requires no external libraries (many have also mentioned that it's better to avoid the VB & other language legacy functions).
Visual Basic:
Dim Sarr() As String
Sarr = "John Doe".Split(" "c)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.