'我在处理文字时, 发现 VBA 的 IsNumeric() 函数把 "10+" 这样的字符串
'认为是数字字符串. 如下面的程序的条件语句被设置为 "True"
Sub test()
Dim str As String
str = "10+" 'or "10-"
If IsNumeric(str) Then
MsgBox Chr(34) & str & Chr(34) & " is a numeric string"
Else
MsgBox Chr(34) & str & Chr(34) & " is not a numeric string"
End If
End Sub
'这是为什么?