1

I begun programming with TouchDevelop but I entered the error below.

action main ()      
var strings := collections → create string collection      
strings → set at(1, "I")      
strings → set at(2, "II")      
strings → set at(3, "III")      
strings → set at(4, "IV")      
strings → set at(5, "V")      
strings → set at(6, "VI")      
var x := math → random(6) + 1      
var s := strings → at(x)      
"The value of dice is " → concat(s) → post to wall # ERROR AT CONCAT(S)
Nic
  • 12,220
  • 20
  • 77
  • 105
Feel Physics
  • 2,783
  • 4
  • 25
  • 38
  • And this has to do with Pascal.. ? – Thomas Mar 03 '13 at 09:26
  • 1
    @Thomas, precisely nothing... :-) I've created a brand new [tag:touchdevelop] tag, but I'm afraid since it's just created, no one will notice the question. Do you have ideas which tags add to the question ? Weed, could you add some tags to your question to pay more attention, please ? – TLama Mar 03 '13 at 09:33
  • 1
    Sorry, Thomas. And thank you TLama. I added two tags 'string' and 'arrays'. I'm gonna wait for a moment. – Feel Physics Mar 04 '13 at 00:33

1 Answers1

0

For the touchdevelop language you want to use the string concatenation characters, which is || . Your line would be:

"The value of dice is " || s → post to wall

The double-pipe character can be found in the third menu to the left next to the mathematical operators if you are using Windows Phone 7.

ChargerIIC
  • 1,620
  • 1
  • 33
  • 47