Lingo Dictionary > D-F > freeBlock() |
![]() ![]() ![]() |
freeBlock()
Syntax
the freeBlock
Description
Function; indicates the size of the largest free contiguous block of memory, in bytes. A kilobyte (K) is 1024 bytes. A megabyte (MB) is 1024 kilobytes. Loading a cast member requires a free block at least as large as the cast member.
Example
This statement determines whether the largest contiguous free block is smaller than 10K and displays an alert if it is:
if (the freeBlock < (10 * 1024)) then alert "Not enough memory!"
See also
freeBytes()
, memorySize
, ramNeeded()
, size
![]() ![]() ![]() |