FREEMEM

Contents


freemem determines the quantity of available memory at a given time.

 

Syntax

   freemem

 

Example

   # Test if there is enough available memory.
    If freemem < 1024
       Errbox "Function not possible in the context"
       End
    Endif

 

Description and Comments

The freemem function returns the number of bytes not used in memory at a given time. This number corresponds to all buffers that have not been used - whether contiguous or not. .

WARNING: Due to memory fragmentation, you can never be sure of having the space to load an OBJect (a screen of 32K, for example) while the size of the remaining memory is much larger (1024K, for exemple). Therefore, the value returned by freemem is purely indicative.

The result of the function is of the Integer type.

 

Associated Errors

No associated error

 

Associated Keywords

MAXMEM - ADXMBM - ADXMPR


CONTENTS


Copyright © Sage 1999 - 2007