qck.hlp (Table of Contents; Topic list)
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