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>len()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LEN()


Syntax:     LEN(<expC>/<array>)

Purpose:    To return the length of a character expression or the
            DECLAREd number of elements in an array.

Arguments:  <expC> is the character string to determine the length
            of.

            <array> is the array to count.

Returns:    An integer numeric value.

            If the character expression evaluates to a null string,
            LEN() returns zero.

Library:    CLIPPER.LIB


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

   ? LEN("string of characters")       && Result: 20
   ? LEN(SPACE(10))                    && Result: 10
   ? LEN(SPACE(0))                     && Result: 0
   ? LEN(TRIM(SPACE(10)))              && Result: 0

   DECLARE test_array[10]
   ? LEN(test_array)                   && Result: 10


See Also: DECLARE LTRIM() TRIM()

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