SIZEOF operator

Purpose:

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

Syntax:

RetVal = SIZEOF(Variable)

Return Value:

  • RetVal SIZE_T bytes of memory storage space required by Variable.

Parameters:

  • Variable string, numeric, or pointer variable.

Example:

DIM RetVal AS SIZE_T
DIM Longish#

Longish# = 1234567.890123

RetVal = SIZEOF(Longish#)

PRINT RetVal

Result:

8

BCX Console Sample Programs using the SIZEOF operator.