ARRAYLEN
Provides the length of an array given its array-name.
Syntax:
Usage:
#include once "fbc-int/array.bi"
using FB
...
result = ArrayLen(arrayname())
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
Using FB
Dim As LongInt array(4, 5)
Dim As UInteger array_length
array_length = ArrayLen(array())
Print array_length '' 30
- Since fbc 1.09.0.
Differences from QB:
- New to FreeBASIC.
See also:
Back to Array Functions