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.
假设这是我的字符串:
1 2 3
我想用“”(空格)分割字符串并显示我字符串的每个时间部分。
这将满足您的需要:
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