Error : Unable to find overload for Height(Int).

Monkey Forums/Monkey Bug Reports/Error : Unable to find overload for Height(Int).

Tibit(Posted 2013) [#1]
I noticed a thing that can be made clearer in an error message :)

If I only have a property for GET and not one for SET, but I try to do this:

playfield.Height = DeviceHeight

I get this:

Error : Unable to find overload for Height(Int).

But I expected something like:

Error : Property "Height" cannot be assigned, it is readonly.


rIKmAN(Posted 2013) [#2]
I think it's because you are missing the brackets off the end of DeviceHeight.

Try:

playfield.Height = DeviceHeight()