Lingo Dictionary > L-N > memorySize |  |

memorySize

Syntax

    the memorySize

Description

System property; returns the total amount of memory allocated to the program, whether in use or free memory. This property is useful for checking minimum memory requirements. The value is given in bytes.

In Windows, the value is the total physical memory available; on the Macintosh, the value is the entire partition assigned to the application.

Example

This statement checks whether the computer allocates less than 500K of memory and if it does, displays an alert:

    if the memorySize < 500 * 1024 then alert "There is not enough memory to run this movie."

See also

`freeBlock()`, `freeBytes()`, `ramNeeded()`, `size`