Interesting. And indeed the manual states (p22) that variables dimmed in a subroutine have a local scope. That comes as a bit of a surprise.

quote:
The subroutine is definitely one level down within a script as is code inside an IF-ENDIF construct
That would mean that you couldn't use "Exit" from within an If/EndIf, as the exit would only exit the conditional structure.

Regardless, it is broken. It should either Exit the script as advertised, or return to the next line after the GoSub. Currently it does neither.

[ 22. October 2003, 17:03: Message edited by: Richard H. ]