ARRAYLEN


Provides the length of an array given its array-name.

Syntax:
declare function ArrayLen ( arrayname() as const any ) as uinteger

Usage:
#include once "fbc-int/array.bi"
using FB
...
result = ArrayLen(arrayname())

Parameters:
arrayname
The name of the array for which the length is returned.

Description:
Returns the total number of elements of the array specified by arrayname() (taking into account all dimensions of array).

Examples:
#include once "fbc-int/array.bi"
Using FB

Dim As LongInt array(4, 5)
Dim As UInteger array_length

array_length = ArrayLen(array())
Print array_length                '' 30

Version:
Differences from QB:
See also:
Back to Array Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode