[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TRIM()/RTRIM()

    TRIM() removes all trailing blanks from a character expression.

Syntax

    TRIM(<expC>)  -or-  RTRIM(<expC>)

Usage

    TRIM() is useful when you want to delete trailing spaces from a
    character string when concatenating with another string.  For example,
    a typical application of TRIM() is creation of formatted strings for
    names and addresses.

    Tests for null strings: you can use TRIM() as part of an expression
    to test for an empty character string.  For example, you can use the
    condition, LEN(TRIM(<expC>)=0 or the more preferred method,
    EMPTY(<expC>).

See Also: LTRIM SUBSTR
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson