EndsWith
返回一个逻辑值,用来判断字符串是否以给定的子字符串结尾。
语法:
EndsWith(Value)
Value:给定的字符串,判断是否以该子字符串结尾。
示例:
Dim
Country
As
String ="上海市"
Dim Val1 As
Boolean
Dim Val2 As
Boolean
Val1 =
Country.EndsWith("市")
Val2 = Country.EndsWith("省")
Output.Show("Val1: "
& Val1)
Output.Show("Val2: "
& Val2)
在命令窗口执行后,会显示:
Val1: True
Val2: False
本页地址:http://www.foxtable.com/webhelp/topics/0235.htm