illegal type conversion on code that used to work fine...

BlitzPlus Forums/BlitzPlus Programming/illegal type conversion on code that used to work fine...

GR(Posted 2003) [#1]
cw=GetColor(x+1,y+9)
cw=GetColor(x+38-(al*2),y+9-(al*5))

Results in an "illegal type conversion" error...

Strange as this variable has not been used anywhere else in my program, nor has it been dim'd... Actually the code used to work fine, but somewhere in one of the Blitz2D updates, it has become broken.

Any ideas?
Steve


GR(Posted 2003) [#2]
Ok, nevermind... it seems readpixel is the correct way to do this now.