Variable has not been assigned a value. (Documentation Bugs and Problems)

by M Santos, Friday, April 08, 2016, 15:19 (447 days ago)

Hi

Have been away for a while, but I will put some new stuff in the Basic Bits blog.

Some old programs (eg Game of Life , Tetris) give the error "Variable has not been assigned a value."

These programs used to work fine.

Any help ?

Manuel

Variable has not been assigned a value.

by M Santos, Thursday, April 14, 2016, 10:44 (441 days ago) @ M Santos

I know what happened . Arrays used to have an initial value of 0, but with the new versions after initializing one has to give initial values.

Dim stat(7)
you should allays have
for n = 0 to 6
stat[n] =0
next n

I'll have to do some debugging

RSS Feed of thread
powered by my little forum