Computer Science Canada

Problem. Need a fix.

Author:  overkill [ Wed Feb 04, 2004 9:43 pm ]
Post subject:  Problem. Need a fix.

OK, I managed to basically port another language into Turing. However, Turing keeps on telling me "no value assigned" when the functions I'm using are designed for assigning values.

This is supposed spawn moving objects, and process and render them as they move along. Can somebody tell me how to fix this? Thanks in advance.

Author:  Paul [ Wed Feb 04, 2004 9:59 pm ]
Post subject: 

I think you have to assign your array variables with a value first...
you can do that by using initial value like
var number : array 1..3 of string := init ("a", "b", "c")
or you can assign them separately with a loop or something.
Not sure if Im right.

Author:  Kuntzy [ Wed Feb 04, 2004 10:08 pm ]
Post subject: 

yeah, the error means that you have to assign the items within your array values, whether that be true or false, or what every system you are using ...
just set up a for statement before you declare your functions and proc's that gives them a value.