Computer Science Canada Variable has no value? But I put a value... |
Author: | Destro [ Mon Jan 13, 2014 12:59 pm ] | ||
Post subject: | Variable has no value? But I put a value... | ||
What is it you are trying to achieve? I want 'C' to clear the screen. I want 'R' to restate the instructions. What is the problem you are having? When I run the program, it says variable has no value even though I put var leedle : array char of boolean Describe what you have tried to solve this problem I have tried putting it in the loop, in the 'if' statement. Out of the loop, out of the 'if' statement. I have tried different variables. None of it works. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using 4.1.1 Thanks guys |
Author: | Insectoid [ Mon Jan 13, 2014 1:06 pm ] |
Post subject: | RE:Variable has no value? But I put a value... |
'array char of boolean' is a type, not a value. Have a look at Input.KeyDown. |
Author: | Destro [ Mon Jan 13, 2014 1:13 pm ] |
Post subject: | Re: RE:Variable has no value? But I put a value... |
Insectoid @ Mon Jan 13, 2014 1:06 pm wrote: 'array char of boolean' is a type, not a value. Have a look at Input.KeyDown.
Could you explain further please? I am very new to turing D: |
Author: | Raknarg [ Mon Jan 13, 2014 5:46 pm ] |
Post subject: | RE:Variable has no value? But I put a value... |
var num : int := 5 num's value is 5, its type is int. http://compsci.ca/holtsoft/doc/ |
Author: | Destro [ Mon Jan 13, 2014 7:50 pm ] |
Post subject: | RE:Variable has no value? But I put a value... |
I got it working, thanks guys! |