[TOC] [Prev] [Next] [Bottom]



<@RTRIM>

Syntax

<@RTRIM STR=string [ENCODING=encoding]>

Description

Returns the value specified in STR stripped of trailing spaces. The STR attribute may be a literal value or a meta tag that returns a value.

This meta tag is useful for stripping spaces from the end of CHAR column values returned from DBMSs such as Oracle, which pad values to the declared length of the column. You may also use the stripChars configuration variable to accomplish this task.

Examples

<@RTRIM STR="this is padded    ">

This example returns "this is padded".

<@RTRIM STR="<@COL NUM='2'>">

This example returns value for column two, less any trailing spaces.

See Also

Encoding Attribute
<@KEEP>
<@LTRIM>
<@OMIT>
stripCHARs
<@TRIM>



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.