ForStack: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
Gordon.dye (talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The '''ForStack''' [[config]] specification changes the size of the [[For/Next]] stack, which keeps track of each different variable incremented in a program's For/Next loops. | The '''ForStack''' [[config]] specification changes the size of the [[For]]/[[Next]] stack, which keeps track of each different variable incremented in a program's For/Next loops. | ||
====Comments and Examples==== | ====Comments and Examples==== | ||
Line 8: | Line 8: | ||
====Start-up Default==== | ====Start-up Default==== | ||
FORSTACK | FORSTACK 100 (version 4.3+) | ||
====Parameter==== | ====Parameter==== | ||
Line 14: | Line 14: | ||
====Technical Considerations==== | ====Technical Considerations==== | ||
# ForStack may be specified only in [[BRConfig.sys]]; it is not valid with the [[config]] | # ForStack may be specified only in [[BRConfig.sys]]; it is not valid with the [[config]] command. | ||
# An error message (error code [[9004]]) appears when a program uses more than the allotted number of For/Next variables. | # An error message (error code [[9004]]) appears when a program uses more than the allotted number of For/Next variables. | ||
# The available | #The flow stack memory area is taken from available user memory. | ||
#The '''Status Stacks''' command shows the current stack settings. | |||
<noinclude> | <noinclude> | ||
[[Category:Config]] | [[Category:Config]] | ||
</noinclude> | </noinclude> |
Latest revision as of 00:02, 29 June 2015
The ForStack config specification changes the size of the For/Next stack, which keeps track of each different variable incremented in a program's For/Next loops.
Comments and Examples
The For/Next stack counts loop variables by name, regardless of how many times they are used in a program. Thus, if I is used as a loop variable (FOR I = 1 TO...) once in a program, it takes up one For/Next stack variable. But if I is used twenty times as a loop variable, it still takes up just one For/Next stack variable.
Syntax
Start-up Default
FORSTACK 100 (version 4.3+)
Parameter
"Integer" is a decimal number that represents the number of variables the For/Next stack should hold. This number must be greater than 4.
Technical Considerations
- ForStack may be specified only in BRConfig.sys; it is not valid with the config command.
- An error message (error code 9004) appears when a program uses more than the allotted number of For/Next variables.
- The flow stack memory area is taken from available user memory.
- The Status Stacks command shows the current stack settings.