再百度找了循环算法,一大堆代码,
感觉还是 foxtable 好用 几行就搞掂
Dim str As String = "1|2|3|4|5|6|7|8|9|10|11|12"
Dim p As Integer = 5 '这个是测试用的开关
Dim val() As String
val = str.split("|")
Dim v(val.Length -1) As String
v(0) = val(p -1 )
For a As Integer = 0 To val.Length
If a > val.Length -1 Then
Exit For
End If
v(a) = val (( a + p + val.Length -1) Mod val.Length)
Output.Show(v(a))
Next