Crystal Reports for Rational Application Developer 設計工具指南
RTrim (字串)
RTrim 與
「TrimRight (字串)」
是相等的函式。
說明
RTrim 將已知字串右邊的所有空白刪除,然後傳回。
引數
字串引數是文字字串。
傳回
字串值
動作
RTrim 將已知字串右邊的所有空白刪除,然後傳回。
典型用法
只要文字物件有後置空白,導致可能影響文字字串的對齊、字元計數或計算 (如果最後將字串轉換成數字),都可以使用這個函式。
每當合併 (串聯) 對齊的文字字串,並且希望字串間有適當的間距,就應該使用這個函式。
範例
RTrim("Al/4520/B12 ")
傳回 "A1/4520/B12"。
RTrim({file.REFERENCE})
當 {檔案.參考} 包含向左對齊的字串 "Bal Fwd. " 時,傳回 "Bal Fwd."。
請參閱
「Trim (字串)」
「LTrim (字串)」
Business Objects, SAP 子公司
http://www.taiwan.businessobjects.com/
支援服務
http://www.taiwan.businessobjects.com/support/
產品說明文件網站
http://support.businessobjects.com/documentation/