Crystal Reports for Rational Application Developer 设计员指南
StrCmp
说明
StrCmp 函数比较两个字符串。
重载
StrCmp (str1, str2)
StrCmp (str1, str2, compare)
参数
str1 是要比较的第一个文本字符串。
str2 是要比较的第二个文本字符串。
compare 是一个可选数字值,用来标明要用的字符串比较的类型:
0 执行区分大小写的比较
1 执行不区分大小写的比较
如果省略,将执行区分大小写的比较。
返回
整数,其中
-1 = 小于
0 = 等于
1 = 大于
操作
StrCmp 函数比较两个字符串。
典型用法
使用此函数以确定两个字符串值是否相同。
示例
StrCmp("abcd", "aa")
返回 = 1。
StrCmp("abcd", "aa", 1)
返回 = 1。
StrCmp ("abcd", "ac")
返回 = -1。
StrCmp ("aa", "aa")
返回 = 0。
Business Objects,SAP 子公司
http://www.china.businessobjects.com/
支持服务
http://www.china.businessobjects.com/support/
Web 上的产品文档
http://support.businessobjects.com/documentation/