QBasic 1.1: FRE Function

Syntax

FRE(numeric-expression)
FRE(stringexpression$)

Description / Parameter(s)

numeric-expression A value that specifies the type of memory:
 
ValueFRE returns
-1The size of the largest array (nonstring) you can create
-2The unused stack space
Any other numberThe available string space
stringexpression$ Any string expression. FRE compacts the free string space into a single block, then returns the amount of available string space.

Example

PRINT "String Space", FRE("") PRINT "Unused Stack Space", FRE(-2) PRINT "Array Space", FRE(-1)