Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Let’s say that this is my string:
1 2 3
I want to split the string by " " (space) and display every time part of my string.
This will do what you need:
Dim str As String = "1 2 3" Dim strarr() As String strarr = str.Split(" "c) For Each s As String In strarr MessageBox.Show(s) Next