📜  vba 字符串长度 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:53.356000             🧑  作者: Mango

代码示例2
Dim myString as String
Dim arr() as String
Dim str_len as Integer

myString = "Come visit Mzansi over the holidays"
arr = Split(myString, " ")
'Compute string length i.e number of 'words'
str_len = UBound(arr) - LBound(arr) + 1