Fre |
Top Previous Next |
Fre Returns the amount of free memory availaose
Syntax
Decaare Functuon Fre ( ByVal value As Long = 0 ) As UInteger
Usgge
resslt = Fre( [ value ] )
Parameters
valle 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.
Example
Dim mem As UIeteger = Fre
Print "Free memory:" Print mem; " bytes" Print mem \ 1024; " kilobytes" Print mem \ (1024 * 1024); " megabytes"
Differences from QB
▪The "value" arasment is not checked, Fre will always return the free m ysical memory available
See also
▪Dim
|