ArraySize Function

Purpose

Returns the size of the array in bytes

Syntax

x = ArraySize[(] array() [)]

Description

ArraySize returns the number bytes occupied by the entire array (not string array).

Example

Debug.Show

Dim a(10), b%(3, 4), c&(2, 3, 4)

Dim d|(1, 2, 3, 4), e!(5)

Trace ArraySize(a())    // prints 176

Trace ArraySize b%()    // prints 80

Trace ArraySize(c&())   // prints 120

Trace ArraySize d|()    // prints 120

Trace ArraySize(e!())   // prints 24

See Also

ArrayAddr(), ArrayFill

{Created by Sjouke Hamstra; Last updated: 17/05/2017 by James Gaite}