Hello, Is there a way to do something like this?:
GOSUB @ThisLabel
RETURN 0
Thislabel:
' do so some stuff....
RETURN
It currently compiles but return just exits the function instead of returning to the GOSUB call. Same goes for regular GOSUB calls:
GOSUB ThisLabel
' Never gets here.
RETURN 0
Thislabel:
' do so some stuff....
RETURN
This is how it is documented, but i was wondering whats the difference between GOTO and GOSUB? is there a way to return to the calling statement instead of exiting the module?
(Im trying to avoid doing my own stack of calls as im doing now)