Hi Colin --

>>>>The problem is that you're repeating the same code twice;

>>
>>Seems to me that that was why GoSub was created.

>
>No...that's why subroutines were created. GoSubs are ugly, and less and
>less programmers know how to use them elegantly (if you can call it that).


They _were_ very useful for isolating multiple-use code within a procedure, though.
The main advantage being no need to stuff the stack with a boatload of in-scope
variables. IOW, they were most definitely an optimization over separate subroutines
in cases where the code in question was only used from a single location.

>That, and with MS' optimizations to VB, since VB4 (I believe), using a GoSub
>has been slower than using a new subroutine anyway. So you don't even save
>anything.


You're telling the guy who reported that to MS during the VB4 beta. ;-)

Later... Karl