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


Syntax:        L_ARCOUNT(<array>,<expC>[,<expN1>,<expN2>])


Purpose:       Counts the number of specified data type in an array.


Arguments:     <array> is the array to be used.

               <expC> is the data type to be searched for.  Valid data
               types are:-

               C = Character
               N = Numeric
               L = Logical
               D = Date
               M = Memo
               U = Undefined

               <expN1> the element at which to start searching.

               <expN2> the element at which to stop searching.

               If <expN1> and <expN2> are not specified all elements
               in the array will be checked.


Returns:       Returns the number of specified data types in the array


Examples:      DECLARE array[8]

               array[1] =
               array[2] = 0
               array[3] = .T.
               array[4] = " "
               array[5] = DATE()
               array[6] = NOTES
               array[7] = 2546
               array[8] = "Hello"


               ? L_ARCOUNT(array,"U")   && Result: 1
               ? L_ARCOUNT(array,"N")   && Result: 2
               ? L_ARCOUNT(array,"L")   && Result: 1
               ? L_ARCOUNT(array,"C")   && Result: 2
               ? L_ARCOUNT(array,"D")   && Result: 1
               ? L_ARCOUNT(array,"M")   && Result: 1

Language:      C

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