◄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.