Posts: 21
Threads: 5
Joined: Apr 2007
quick question... i was just messing aroud with adding variables and the qm told me to use:
Instead of c=a+b use c.from(a b)
but can u break that down for what each variable represents in this situation?
Posts: 1,769
Threads: 410
Joined: Feb 2003
basically it's saying this.
make c= to the combination of a and b.
or
glue a and b together and make c equal to that....i use it all the time!
a b and c are all string variables and can be any string value.
Posts: 21
Threads: 5
Joined: Apr 2007
see i tried something like that but i couldnt get it to work...
so for example if i made
str a=1
str b=2
str c=3
then tried to make it act as an id, like,:
but+ c.from(a b)
if i wanted it to but+ id 3?... i dont know i was just experimenting but if u have any more advice please fill me in... thx
Posts: 1,769
Threads: 410
Joined: Feb 2003
your assining string vars like integer vars.
if a b and c are strings you assign values like this.
str a b c
a="1"
b="2"
c="3"
c.from is a string only function you're trying to make it add numbers together.
to do that it's just a simple
int a b c
a=1
b=2
c=3
c=a+b;;which will also equal 3
Posts: 21
Threads: 5
Joined: Apr 2007
hahaha your right what was i thinking lol... ty for all the help man appreciate it.
Posts: 1,769
Threads: 410
Joined: Feb 2003