SIZEOFMEMORY FunctionWindows/Unix

A function that returns the size, in bytes, of a data type.

Syntax: SIZEOF(datatype|variable)
PRINT SIZEOF(MyUDT)
PRINT SIZEOF(MyVar)
PRINT SIZEOF(INTEGER)

Details:
To calculate the size of a UDT, you must first DIM it.
ie. DIM MyUDT AS TMyUDT
Not all cases are supported, may return 4 bytes for an array (the size of the array pointer since arrays are passed by reference).