Nested GoSubs

eric_seale

New Member
I'm having trouble with code containing nested subroutines (i.e., subroutines which contain GoSubs to other subroutines). I can only go 2 layers deep before "return" no longer returns, and my code gets stuck in a subroutine.
 

Technical

Technical Support
Staff member
You can nest 4 deep, so perhaps post your code to see if we can help. Note that you can get into trouble when using interrupts if not careful - e.g. if you interrupt a 2 level gosub only one level is left (2 original, 1 for interrupt, 1 spare)
 
Top