FRE
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgFre
- Last revised: 2022-03-25
Returns the amount of free memory available
Syntax
` declare function Fre ( byval value as long = 0 ) as uinteger
`
Usage
` result = Fre( [ value ] )
`
Parameters
value
Unused dummy parameter kept for backward compatibility; can be ignored.
Return Value
Returns the amount of free memory, in bytes.
Description
Returns the free memory (ram) available, in bytes.
Examples
start GeSHi
vb
Dim mem As UInteger = Fre
Print "Free memory:"
Print
Print mem; " bytes"
Print mem \ 1024; " kilobytes"
Print mem \ (1024 * 1024); " megabytes"end GeSHi
Differences from QB
- The "value" argument is not checked,
Frewill always return the free physical memory available
See also
DimRedimAllocate
Back to DocToc