Posts: 548
Threads: 67
Joined: Jun 2004
the main module? I am trying to make a gosub or goto command that goes to a label in the maind module.... Is this possible to do?
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Posts: 6,419
Threads: 74
Joined: Mar 2002
Posts: 548
Threads: 67
Joined: Jun 2004
Okay, Thanks Lebron!
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Posts: 3,288
Threads: 167
Joined: Nov 2001
Posts: 6,419
Threads: 74
Joined: Mar 2002
This is the first notice I have of it.
Posts: 175
Threads: 36
Joined: Oct 2003
what?
however if u have a sub, you could do something like this.
Code:
print "a" 'main sub code
dosomthing tag 'goto sub dosomething, passing variable tag
if tag = 1 then gosub dosomethingelse 'after return from sub gosub other code
end 'end of program
dosomethingelse: 'gosub in main sub
print "b" 'code in gosub
dosomething 1 'go back to dosomething sub
return 'returns to gosub, i.e. end
sub dosomething (tag) 'dosomething sub with variable tag
if tag = 0 then 'if first time ran run all code
print "c"
tag = 1 'not first time run
exit sub 'return to main sub
end if
tag = 0 'run the rest of the sub after you have returned and come back
print "d"
end sub
eminiscing about trapezoids in conjunction with stratospherical parabolas:
No questions asked.
www.stickskate.com
Posts: 548
Threads: 67
Joined: Jun 2004
I appreciate it Darnell. :king:
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]
Posts: 175
Threads: 36
Joined: Oct 2003
what?
eminiscing about trapezoids in conjunction with stratospherical parabolas:
No questions asked.
www.stickskate.com
Posts: 175
Threads: 36
Joined: Oct 2003
what?
eminiscing about trapezoids in conjunction with stratospherical parabolas:
No questions asked.
www.stickskate.com
Posts: 548
Threads: 67
Joined: Jun 2004
DOUBLE POST'D [/b]
quote="na_th_an"]
Greenday, Spice Girls... Can you tell the difference?
[/quote]