GetMemUsage – System Function






GetMemUsage Function


Description

The GetMemUsage function returns the memory usage percentage (from 0 to 100).

Syntax

var = GetMemUsage()

Parameters

None.

Return Value

var, integer, memory usage percentage from 0 to 100. If the function fails, the return value is a negative nonzero value (see System Functions Error Codes).

Examples

a = GetMemUsage()
msgbox(str$(GetMemUsage()))    'Str$ converts the integer returned by GetMemUsage into a string, displayed by msgbox