sysLib.bytes

The system function sysLib.bytes returns the number of bytes in a named area of memory.


sysLib.bytes syntax diagram

result

A numeric item that receives the number of bytes in itemOrRecord. Two cases are special:

  • If itemOrRecord is an array, result receives the number of bytes in one element

  • If itemOrRecord is an SQL record, result receives the number of bytes in the record, including the extra bytes; for details see SQL record internals

itemOrRecord

An array, item, or record

Example

  result = sysLib.bytes(myItem);

Related reference
Primitive types
SQL record internals