bytes = GetFreeMem()
This function returns the amount of free memory in bytes. The value returned indicated the amount of memory available to Basic, not total device memory. The amount of memory may go up suddenly if the system decides you need more. Each application is allocated a portion of total available memory.