SIZE

Previous  Next

 

size = SIZE( varname AS VARIANT ) AS INTEGER

 


 

Returns the size of memory needed to store the specified variable.

 

Examples:

 

DIM kalle as INTEGER

DIM arr(10) AS REAL

 

PRINT "Size of KALLE = ";SIZE( kalle ),    ' Size of KALLE = 4

PRINT "Size of ARR   = ";SIZE( arr ),      ' Size of ARR   = 40

 

END