StringCompare() 函数
- Last UpdatedJan 15, 2020
- 1 minute read
相互比较两个字符串,并返回布尔结果(0 = 字符串相等)。每个字母的大小写也在考虑范围,因此举例而言,‘A’ 会视为不等于 ‘a’。
语法
result = StringCompare (string1, string2)
参数
string1
字符串、消息标记名或字符串表达式。
string2
字符串、消息标记名或字符串表达式。
示例
StringCompare (“Apple”,”Apple”) 返回 0。
StringCompare (“Apple”,”apple”) 返回 1。
此字符串比较两个消息标记,并返回离散结果(0 或 1):
StringCompare (mtag1, mtag2)