Crystal Reports for Rational Application Developer 設計工具指南
StrCmp
說明
StrCmp 函式比較兩個字串。
多載
StrCmp (字串1, 字串2)
StrCmp (字串1, 字串2, 比較)
引數
字串1 引數是即將比較的第一個文字字串。
字串2 引數是即將比較的第二個文字字串。
比較引數是選擇性的數值,指示將使用的字串比較種類:
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.taiwan.businessobjects.com/
支援服務
http://www.taiwan.businessobjects.com/support/
產品說明文件網站
http://support.businessobjects.com/documentation/