C1016: Exit out of scope

Top  Previous  Next

Description:

The exit statement may be used only from within certain statements (for, while, do-loop, sub, function). This error occurs when the compiler encounters an exit statement which is used not from within one of these statements.

Example:

 

for i = 1 to 10

       exit while ' error C1016: 'Exit' is of scope

next i

 

 

See Also

Exit Statement