Woops, it's a compiler bug - you should NOT be able to call a method from within a function!
So eventhough I have made Greys code work. You think that the compiler should tell me that I CANNOT call a method from within a function?
Strict Global Grid[10,10] Type TA Method do() GLobal Temp:Ta = self do2() Function do2() Local G=Grid[0,0] Temp.do3() End Function End Method Method do3() Print "OK" End Method EndType Global A:TA = New TA A.do()
Before you post "but he ment....." ALL my post have been to mark to clarify what he ment, and you posting is not doing that.
If it was a mistake (Which I think it was), then mark needs to say so. If he really is going to change the compiler so that you cannot call method from within a function then he needs to say so.