System.FreeMemory (property)

Syntax

System.FreeMemory

Description

Returns a Long indicating the number of bytes of free memory.

Example

The following example gets the free memory and converts it to kilobytes.

Sub Main()

  FreeMem& = System.FreeMemory

  FreeKBytes$ = Format(FreeMem& / 1000,"##,###")

  MsgBox FreeKbytes$ & " Kbytes of free memory"

End Sub

See Also

System.TotalMemory (property); System.FreeResources (property); Basic.FreeMemory (property).

More information

S