Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>alltrim()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ALLTRIM()
 Remove leading and trailing spaces from a character string
------------------------------------------------------------------------------
 Syntax

     ALLTRIM(<cString>) --> cTrimString

 Arguments

     <cString> is the character expression to trim.

 Returns

     ALLTRIM() returns a character string with leading and trailing spaces
     removed.

 Description

     ALLTRIM() is a character function that removes both leading and trailing
     spaces from a string.  It is related to LTRIM() and RTRIM() which remove
     leading and trailing spaces, respectively.  The inverse of ALLTRIM(),
     LTRIM(), and RTRIM() are the PADC(), PADL(), and PADR() functions which
     center, left-justify, or right-justify, character strings by padding
     them with fill characters.

 Examples

     .  This example creates a string with both leading and trailing
        spaces, and then trims them with ALLTRIM():

        cString := SPACE(10) + "string" + SPACE(10)
        ? LEN(cString)                     // Result: 26
        ? LEN(ALLTRIM(cString))            // Result: 6

 Files:  Library is EXTEND.LIB.

See Also: LTRIM() PAD() RTRIM()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson