MemoryBlock.Size Property

Syntax

Size as Integer


The size of the MemoryBlock in bytes. If you assign a value to this property, REALbasic resizes the MemoryBlock, retaining as much of the existing data as possible.

Returns an Integer. MemoryBlock has a class constant, SizeUnknown ( Integer), whose value is -1.Size returns SizeUnknown when the MemoryBlock is of unknown size. You can get this condition with Declare statements.