Description

Returns the size in bytes of a given variable.

Syntax

byteSize = GetByteSize(expression)

Parameters

The function has the following parameters:

ParameterDescription
expressionAny legal BASIC+ expression.

Returns

The size in bytes of a give variable.

See also

len()

Example

variable = 12345678
byteSize = GetByteSize(variable)
call Msg(@window, "The bytesize of " : variable : " is " : bytesize)
  • No labels