Arraysize
Provides the size of an array given its array-name.
Syntax
`
Declare Function ArraySize ( arrayname() As Const Any ) As UInteger
`
Usage
`
#include once "fbc-int/array.bi"
using FB
...
result = ArraySize(arrayname())
`
Parameters
`arrayname`
The name of the array for which the size is returned.
Description
Returns the total size (in bytes) of the array specified by `arrayname()` (size of array element multiplied by total number of array elements).
Example
`
#include Once "fbc-int/array.bi"
Using FB
Dim As LongInt array(4, 5)
Dim As UInteger array_size
array_size = ArraySize(array())
Print array_size '' 240
`
Version

- Since fbc 1.09.0.

Differences from QB

- New to FreeBASIC.

See also

- `Arraylen`
- `Fbarray (Array Descriptor Structure And Access)`