Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_arrct() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ARRCT()

 DESCRIPTION

 C_ARRCT() returns the number of defined elements in the specified
 array.

 SYNTAX

 C_ARRCT(array)

 PARAMETERS

 array (A) is the array to count the number of defined elements.
 The array argument is specified without quotes.

 RETURNS

 C_ARRCT() returns the number of defined elements as a numeric.

 EXAMPLES

 private arr1[4], arr2[4], arr3[4]
 arr1[1] = 25
 arr1[2] = 50
 arr1[3] = 75
 arr1[4] = 99

 arr2[1] = "Item 1"
 arr2[2] = "Item 2"

 ? c_arrct(arr1)  --> 4
 ? len(arr1)      --> 4

 ? c_arrct(arr2)  --> 2
 ? len(arr2)      --> 4

 ? c_arrct(arr3)  --> 0
 ? len(arr3)      --> 4


See Also: C_ARRSUM() C_ARRAVG() C_ARRMIN() C_ARRMAX() C_ARRSTR()

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