如何检查字符串变量是否包含 dot/period(.) 字符?
How to check if a String variable contains a dot/period(.) character?
我想检查一个字符串是否包含点字符,像这样
Dim input As String
input = "Hello."
if (input contains a dot character) then
do something
else
do something
End if
最简单的就是
input.Contains('.')
我想检查一个字符串是否包含点字符,像这样
Dim input As String
input = "Hello."
if (input contains a dot character) then
do something
else
do something
End if
最简单的就是
input.Contains('.')