Difference between revisions of "RTRIM()"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
=RTRIM()=
 
 
 
 
==Class==
 
==Class==
 
String Data
 
String Data
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[TRIM()]], [[LTRIM()]], [[ALLTRIM()]], [[STRTRAN()]]
+
[[ALLTRIM()]], [[LTRIM()]], [[STRTRAN()]], [[TRIM()]]
  
  
Line 39: Line 36:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:String Data]]
 +
[[Category:String Data Functions]]

Revision as of 16:06, 2 June 2009

Class

String Data


Purpose

Function to remove trailing blanks


Syntax

RTRIM(<expC>)


See Also

ALLTRIM(), LTRIM(), STRTRAN(), TRIM()


Description

The RTRIM() function is synonymous with the TRIM() function. This function removes trailing blank characters from the character expression <expC>. This function should be used in conjunction with the RPAD() function when used in index expressions.


Example

fname = "Christopher         "
sname = "Thompson    "
? len(fname)
        20
? len(rtrim(fname))
        11
? rtrim(fname) + " " + rtrim(sname)
Christopher Thompson


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer