"Subprogram Already in Use" with Recursive SUB CALL (31888)
This article was previously published under Q31888
SUMMARY
The message "Subprogram Already in Use" (error 36) is generated when
trying to recursively call a STATIC subprogram in an interpreted or
compiled program. This is because the STATIC argument must be removed
from the SUB statement to make it a dynamic subprogram, which can then
be called recursively.
Any attempt to call a dynamic subprogram in the interpreter will give
a "Missing STATIC in SUB statement" message. The Macintosh QuickBASIC
Interpreter does not support dynamic subprograms (i.e., recursive
subprogram calls). Only compiled programs support recursive subprogram
calls.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB31888 |
|