淘先锋技术网

首页 1 2 3 4 5 6 7

vb里的split函数说明?

1. 函数解释: 将一个字符串按照某个子字符串分割成字符数组。Function Split(Expression As String, [Delimiter], [Limit As Long = -1], [Compare As VbCompareMethod = vbBinaryCompare]) Member of VBA.Strings Split a string into an array2. 例子Private Sub Command1_Click()Dim x As Stringx = "a b c"Dim yy = Split(x, " ")For i = 0 To UBound(y) Debug.Print y(i)NextEnd Sub