Err... ToString help plz
BlitzMax Forums/BlitzMax Beginners Area/Err... ToString help plz
| ||
I don't get it - why doesn't this work?type sometype function ToString:String() 'some code - any code... end function end type The compiler complains that: "Overriding method differs by type" |
| ||
Ah.. As it turns out ToString is a method :P |
| ||
ToString() is a function in the Object type, the basic type in BMX. I think it initially just returns the address of the object in string form. All you have to is find out the correct types of the arguments and return value in the docs, and the override it with those types. |