Computer Science Canada Putting user input into commands "colourback()cls" and "delay()"? |
Author: | vdemons [ Sat Apr 30, 2011 6:46 pm ] |
Post subject: | Putting user input into commands "colourback()cls" and "delay()"? |
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) |
Author: | Tony [ Sat Apr 30, 2011 7:15 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
Yes, but it has to be the right type (integer value). |
Author: | vdemons [ Sat Apr 30, 2011 7:39 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
but can't colourback(variable)cls be string or interger? |
Author: | vdemons [ Sat Apr 30, 2011 7:42 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
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) |
Author: | Tony [ Sat Apr 30, 2011 7:56 pm ] | ||
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? | ||
It doesn't really make any sense to have
You need an integer. |
Author: | vdemons [ Sat Apr 30, 2011 8:00 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
but its a variable representing a number, so theory it should work right? |
Author: | vdemons [ Sat Apr 30, 2011 8:03 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
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? |
Author: | Raknarg [ Sat Apr 30, 2011 8:04 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
Nope, only integers. And only 0 - 255, btw. |
Author: | vdemons [ Sat Apr 30, 2011 8:06 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
thanks i understand now! BTW i like ur Momo pic |
Author: | Raknarg [ Sat Apr 30, 2011 8:08 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
![]() |
Author: | vdemons [ Sat Apr 30, 2011 8:13 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
Nightmares and Daydreams, what is that? |
Author: | Raknarg [ Sat Apr 30, 2011 8:16 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
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] |
Author: | Tony [ Sat Apr 30, 2011 8:19 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
P.S. there are also round, strint that will make things work. Turing will require you to do type conversions yourself. |
Author: | vdemons [ Sat Apr 30, 2011 8:19 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
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. |
Author: | vdemons [ Sat Apr 30, 2011 8:20 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
thank you tony |
Author: | Raknarg [ Sat Apr 30, 2011 8:21 pm ] |
Post subject: | RE:Putting user input into commands "colourback()cls" and "delay()"? |
Anyways, this is off topic ;P Any other questions? |