CompileErrors/A0022: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{CompileError |errortext = A0022 - Unexpected RETURN at argument depth <depth>: <subroutine> |description = A0022 is issued when a RETURN statement is encountered within an a..." |
No edit summary |
||
| Line 1: | Line 1: | ||
{{CompileError | {{CompileError | ||
|errortext = A0022 - Unexpected RETURN at argument depth <depth | |errortext = A0022 - Unexpected RETURN at argument depth <depth> | ||
|description = A0022 is issued when a RETURN statement is encountered within an argument stack. Normally this means that a prior command did not get enough arguments. | |description = A0022 is issued when a RETURN statement is encountered within an argument stack. Normally this means that a prior command did not get enough arguments. | ||
|exampletext = [[Num#]] takes a single parameter, but a RETURN is found instead. | |exampletext = [[Num#]] takes a single parameter, but a RETURN is found instead. | ||
| Line 6: | Line 6: | ||
SomeSubroutine: | SomeSubroutine: | ||
Num# | Num# | ||
RETURN { A0022 - Unexpected RETURN at argument depth 2 | RETURN { A0022 - Unexpected RETURN at argument depth 2 }<code> | ||
|resolutiontext = Ensure that all argument stacks are complete before the sub declaration. | |resolutiontext = Ensure that all argument stacks are complete before the sub declaration. | ||
|resolutioncode = </code> | |resolutioncode = </code> | ||
Latest revision as of 02:31, 14 January 2015
A0022 - Unexpected RETURN at argument depth <depth>
Description
A0022 is issued when a RETURN statement is encountered within an argument stack. Normally this means that a prior command did not get enough arguments.
Example of Cause
Num# takes a single parameter, but a RETURN is found instead.
SomeSubroutine:
Num#
RETURN { A0022 - Unexpected RETURN at argument depth 2 }
Resolution
Ensure that all argument stacks are complete before the sub declaration.
SomeSubroutine:
Num#('100')
RETURN { No error }