
-----------------------------------
vdemons
Sat Apr 30, 2011 6:46 pm

Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
What is it you are trying to achieve?
I am trying to put user input into commands "colourback()cls" and "delay()"


What is the problem you are having?
When ever i run it it says "Argument is wrong type", can a variable be placed in
the parameter, such as  colourback(variable)cls or delay(variable)

-----------------------------------
Tony
Sat Apr 30, 2011 7:15 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
Yes, but it has to be the right type (integer value).

-----------------------------------
vdemons
Sat Apr 30, 2011 7:39 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
but can't colourback(variable)cls be string or interger?

-----------------------------------
vdemons
Sat Apr 30, 2011 7:42 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
and i also want to do this with delay

var turingdelay:real:=1000

put "Please enter your disired time delay: "..
    get inputdelay

turingdelay:=inputdelay*1000 

. . . 

delay (turingdelay)

-----------------------------------
Tony
Sat Apr 30, 2011 7:56 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
It doesn't really make any sense to have
[code]
delay("hello, string")
[/code]
You need an integer.

-----------------------------------
vdemons
Sat Apr 30, 2011 8:00 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
but its a variable representing a number, so theory it should work right?

-----------------------------------
vdemons
Sat Apr 30, 2011 8:03 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
okay, i get it now but what about colourback(variable)cls does it have to be an integer as well, because that command accepts numbers and strings right?

-----------------------------------
Raknarg
Sat Apr 30, 2011 8:04 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
Nope, only integers. And only 0 - 255, btw.

-----------------------------------
vdemons
Sat Apr 30, 2011 8:06 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
thanks i understand now! BTW i like ur Momo pic

-----------------------------------
Raknarg
Sat Apr 30, 2011 8:08 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
:P Thanks. First one to get it. It's from Nightmares and Daydreams, for the record ;P

-----------------------------------
vdemons
Sat Apr 30, 2011 8:13 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
Nightmares and Daydreams, what is that?

-----------------------------------
Raknarg
Sat Apr 30, 2011 8:16 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
4 days before the Day of Black Sun, Aang has a bunch of nightmares. Appa and Momo have an awsome swordfight XD
[accent="indian"]
"Chakras! Chakras! Everybody loves Chakras!
Chackra sandwich good. Yum!"
[/accent]

-----------------------------------
Tony
Sat Apr 30, 2011 8:19 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
P.S. there are also [tdoc]round[/tdoc], [tdoc]strint[/tdoc] that will make things work. Turing will require you to do type conversions yourself.

-----------------------------------
vdemons
Sat Apr 30, 2011 8:19 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
must have missed the episode, was a great series, you their making a new avatar series "the legend of korra" it is a short of 7 or so episodes.

-----------------------------------
vdemons
Sat Apr 30, 2011 8:20 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
thank you tony

-----------------------------------
Raknarg
Sat Apr 30, 2011 8:21 pm

RE:Putting user input into commands &quot;colourback()cls&quot; and &quot;delay()&quot;?
-----------------------------------
Anyways, this is off topic ;P Any other questions?
