Basic.FreeMemory (property)

Syntax Basic.FreeMemory
Description Returns a Long representing the number of bytes of free memory in the script's data space.
Comments This function returns the size of the largest free block in the script's data space. Before this number is returned, the data space is compacted, consolidating free space into a single contiguous free block. The script's data space contains strings and dynamic arrays.
Example This example displays free memory in a dialog box.
Sub Main()
  MsgBox "The largest free memory block is: " & Basic.FreeMemory
End Sub
See Also System.TotalMemory (property); System.FreeMemory (property); System.FreeResources (property); Basic.FreeMemory (property).