bas7advr.hlp (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.
STACK Statement Details
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
The STACK statement resets the size of the stack.
 
STACK [longinteger&]
 
Usage Notes
    ■ The default stack size is 3K for DOS and 3.5K for OS/2.
    ■ The minimum stack size (if longinteger& = 0) is 0.325K for DOS and
      0.825K for OS/2.
    ■ If you request a stack space that is too large, the STACK statement
      allocates as much stack space as possible.
    ■ The STACK statement is useful in programs that contain recursion and
      lots of nesting of SUB and FUNCTION procedures.
    ■ The STACK function can be used with the STACK statement to set the
      stack to the maximum possible size. For example:
 
        STACK STACK
 
    ■ The STACK statement is allowed only at the module level.