Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

LEN()

Returns size of a string or size of an array.
---------------------------------------------------------------------------------

 Syntax

        LEN( <cString> | <aArray> ) --> <nLength>  

 Arguments

        <acString>   is a character string or the array to check.    

 Returns

       The  length of the string or the number of elements that contains an 
                  array.

 Description

      This function returns the string length or the size of an array. If
      it is used with a multidimensional array it returns the size of the
      first dimension.

 Examples

      ? Len( "Harbour" ) --> 7
      ? Len( { "One", "Two" } ) --> 2
  

 Tests

      function Test()
         LOCAL cName := ""
         ACCEPT "Enter your name: " TO cName
         ? Len( cName )
      return nil
  

Status

      Ready

 Compliance

      LEN() is fully CA-Clipper compliant.

 Files

      Library is rtl



See Also: EMPTY() RTRIM() LTRIM() AADD() ASIZE()

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