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>ltrim()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LTRIM()
 Remove leading spaces from a character string
------------------------------------------------------------------------------
 Syntax

     LTRIM(<cString>) --> cTrimString

 Arguments

     <cString> is the character string to copy without leading spaces.

 Returns

     LTRIM() returns a copy of <cString> with the leading spaces removed.  If
     <cString> is a null string ("") or all spaces, LTRIM() returns a null
     string ("").

 Description

     LTRIM() is a character function that formats character strings with
     leading spaces.  These can be, for example, numbers converted to
     character strings using STR().

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

 Examples

     .  These examples illustrate LTRIM() used with several other
        functions:

        nNumber = 18
        ? STR(nNumber)                // Result:         18
        ? LEN(STR(nNumber))           // Result: 10
        ? LTRIM(STR(nNumber))         // Result: 18
        ? LEN(LTRIM(STR(nNumber)))    // Result: 2

 Files:  Library is CLIPPER.LIB.

See Also: ALLTRIM() PAD() RTRIM() STR() SUBSTR()

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