- Feb
- 16
- 0
The help for tc10 states that:
:Sub1 [str n world]
when called with:
Gosub Sub1 abc 15 "Hello World"
will result in
str=abc
n=15
world="Hello World"
This is fine. I love gosub vars. Furthermore, if the sub is called with:
Gosub Sub1 abc 15
that results in:
str=abc
n=15
world=
However, if you call the sub like this:
Gosub Sub1 abc 15 My World
then you get this:
str=abc
n=15
world=My
Did I miss something? Is there no way to make the last variable "greedy"? The result I would like to see is:
world=My World
I can't find a way to do this, but if I've missed it do tell! And if it's just not there, then add it to the wishlist :-)
Thx
:Sub1 [str n world]
when called with:
Gosub Sub1 abc 15 "Hello World"
will result in
str=abc
n=15
world="Hello World"
This is fine. I love gosub vars. Furthermore, if the sub is called with:
Gosub Sub1 abc 15
that results in:
str=abc
n=15
world=
However, if you call the sub like this:
Gosub Sub1 abc 15 My World
then you get this:
str=abc
n=15
world=My
Did I miss something? Is there no way to make the last variable "greedy"? The result I would like to see is:
world=My World
I can't find a way to do this, but if I've missed it do tell! And if it's just not there, then add it to the wishlist :-)
Thx