SIZEOF function

Purpose: SIZEOF returns integer that gives the size in bytes of memory storage space required by a variable.


 Syntax:

 RetVal% = SIZEOF(Variable)

 Parameters:

  • Variable String or numeric variable or pointer.

 Return Value:

  • RetVal% Returned unsigned integer that gives the size in bytes of memory storage space required by Variable.

Example:


 DIM RetVal#
 DIM Longish#
 
 Longish# = 1234567.890123
 
 RetVal# = SIZEOF(Longish#)
 
 PRINT RetVal#

Result:

8

BCX Console Sample Programs using SIZEOF function.

S70.bas, S79.bas, S85.bas, S90.bas, S101.bas, S105.bas, S126.bas, S128.bas