qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FRE Function
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Returns the amount (in bytes) of available or unused memory.
 
    FRE(numeric-expression% | stringexpression$)
 
    ■ numeric-expression%    Values returned for different types of
      stringexpression$      arguments:
 
      Example                Return Value
      ═════════════════════  ═══════════════════════════════════════════════
      FRE(a$)                Remaining space in a$'s segment (in bytes)
      FRE("string literal")  Remaining space for temporary strings (in bytes)
      FRE(0)                 Error message "Illegal function call"
      FRE(-1)                Remaining space in far memory for data and code
      FRE(-2)                Remaining stack space (in bytes)
      FRE(-3)                Remaining space in expanded memory (in K)
      FRE(-4)                Remaining space within the data segment of the
                             current form (as determined by ActiveForm)
      FRE(any other number)  Error message "Illegal function call"
 
 See Also
   Memory Management Commands