Moderator: Mmiscool
- Albert Einstein
ex: gosub word("[Option1] [Option2] [Option3]", option)
I'll go and find out anyway but wanted to plant that notion in case not.
for option = -1 to 4
gosub word("[Option1] [Option2] [Option3]", option)
next option
end
[Option1]
print "option1"
return
[Option2]
print "option2"
return
[Option3]
print "option3"
return
and it catches the deliberate boundary errors too!
Error at line 4: Gosub Label not found:
Error at line 4: Gosub Label not found:
option1
option2
option3
Error at line 4: Gosub Label not found:
Done...