I read the first post of this thread and figured MISTREL was talking about a Do/Loop..
The main difference with a GOTO v's GOSUB is a GOTO only needs a LABEL where a GOSUB needs a LABEL and a RETURN.
GOTO Code...
+ Code SnippetDo
Top:
Cls
If T=Timer() Then T=Timer()+1000: Jump = Not Jump
If Jump Goto Top
Text 0,0,Str$(Timer())
Loop
GOSUB Code...
+ Code SnippetDo
Cls
If T=Timer() Then T=Timer()+1000: Jump = Not Jump
If Jump Gosub Top
Text 0,0,Str$(Timer())
Loop
End
Top:
`Nothing Here
Return
Running these examples will show why the GOTO command is best suited for this application. The GOSUB command when it returns, continues from where it GOSUB'd.
In saying that I'd opt for using The CASE SELECT to eliminate code sections I don't want running this LOOP.
CASE Code...
+ Code SnippetDo
Cls
If T=Timer() Then T=Timer()+1000: Jump = Not Jump
Select Jump
Case > 0
Text 0,0,Str$(Timer())
EndCase
EndSelect
Loop
if on the other hand you widshed to exit the Do/Loop you could just use EXIT instead of GOTO..