CompileErrors/C0006
Jump to navigation
Jump to search
C0006 - Sub defined in sub
Description
C0006 is issued when a subroutine is defined inside a previous subroutine, but at the root level of that subroutine (not inside an argument, which will issue C0005 instead).
Example of Cause
ASubroutine has not ended before NewSubroutine is defined.
ASubroutine:
NewSubroutine: { C0006 - Sub defined in sub }
RETURN
Resolution
Remove the extra arguments from the argument group.
ASubroutine:
RETURN
NewSubroutine: { No error }
RETURN