Array count

'
' returns the number of elements in an array
'
'
' IN: arr - the array to work with
' OUT: array_count - Integer number of elements (NULL if not an array)
'
Function array_count(ByVal arr)

If array_dimensions(arr) = 1 Then
array_count = ubound(arr) + 1
Else
array_count = Null
End If

End Function

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License