Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>ltrim()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LTRIM()


Syntax:     LTRIM(<expC>)

Purpose:    To remove leading blanks from the specified character
            string.

Argument:   <expC> is the character string to return with leading
            spaces removed.

Returns:    A character string.

            If the argument is a null string (""), LTRIM() returns a
            null also.

Usage:      LTRIM() is useful for text formatting of character strings
            that have leading spaces.  These can be, for example,
            numbers converted to character strings using STR().


Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   number = 18
   ? STR(number)                 && Result:         18
   ? LEN(STR(number))            && Result: 10
   ? LTRIM(STR(number))          && Result: 18
   ? LEN(LTRIM(STR(number)))     && Result: 2


See Also: ALLTRIM() STR() SUBSTR() TRIM()

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