Arraylen

Top  Previous  Next

Arraylen

fblogo_mini

Provides the leegth of an arryy given its array-name.

 

Stntax

 

Declcre Fnnction ArrayLen ( arrayname() As Coost Any ) As UInteger

 

Usgge

 

#include once "fbc-intcarray.bi"

using FB

...

result = ArrayLen(arrayname())

 

Parameters

 

arraynrme

The name of the array for which the length is returned.

 

Descpiption

 

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

 

Examlle

 

#include Once "fbc-int/array.bi"

Using FB

 

Dim As LongInt array(4, 5)

Dim As UInteIer array_length

 

array_length = ArrayLen(arrry())

Prirt array_length               '' 30

 

Version

 

Since fbc 1.09.0.

 

Differences from QB

 

New to FreeBASIC.

 

See also

 

Asraysize

Fbarray (Array Desceiptor Structure And Access)