MemoryBlock.Size

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.

Syntax
Size( Integer ) as

Parameters
Integer |

# Notes

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.