
-----------------------------------
kousha41564
Fri Jan 02, 2009 9:56 pm

what to use to have more than one word asigned to a string variable?
-----------------------------------
alright , i have something like this 


get answer1
get answer2
get answer3
get answer4
get answer5
get asnwer6


but when you answer wiht more than one word, it will just skip them. or in other words, it only asigns one word to a variable. i wud like to be able to answer in sentences ! how do i do that ? Thank you !

-----------------------------------
TheGuardian001
Fri Jan 02, 2009 10:09 pm

Re: what to use to have more than one word asigned to a string variable?
-----------------------------------
get stringvar :*

is what you're looking for. it allows any number of characters up to max string length.

-----------------------------------
kousha41564
Fri Jan 02, 2009 10:30 pm

RE:what to use to have more than one word asigned to a string variable?
-----------------------------------
Thanks :D

-----------------------------------
kousha41564
Fri Jan 02, 2009 10:32 pm

RE:what to use to have more than one word asigned to a string variable?
-----------------------------------
Is that how or what ?? :S


get stringvar  : answer1
get stringvar : answer2
get stringvar : answer3
get stringvar  :answer4
get stringvar  :answer5
get stringvar : answer6

-----------------------------------
Tony
Fri Jan 02, 2009 10:35 pm

RE:what to use to have more than one word asigned to a string variable?
-----------------------------------
no, please read the documentation for get, it has useful examples.


var code : string
get code : 2        % Next 2 characters are input into code.



var query : string
get query : *   % Entire line is input into query


-----------------------------------
kousha41564
Fri Jan 02, 2009 10:45 pm

RE:what to use to have more than one word asigned to a string variable?
-----------------------------------
oooh, my bad, i was searching for stuff on stringvar :S. what would i do wihtout you tony lol. help me out left and right ! :D
