Hi Enrico,
Il 22/02/2009 18.32, Enrico Maria Giordano ha scritto:
Third problem. I'd want something like this:
[snip]
but I get the following error:
Error BASE/1004 Message not found: GET:SETPOS
in this case the problem is that in TGet the command
ASSIGN pos METHOD setPos( nPos )
is translated to:
_HB_MEMBER _pos(); oClass:AddMethod( "_pos", @GET_setPos(), nScope +
iif( .F., 8, 0 ) + iif( .F., 256, 0 ) + iif( .F., 2048, 0 ) )
so as you can see SetPos() is a pointer to static function GET_setPos()
that is local to tget.prg.
Using override command you substitute the message and so lost pointer to
GET_SetPos().
The only way is to replicate locally the function, otherwise it could be
necessary to add to classes a function that returns above pointer that
can be used locally.
Hope to be clear.
Best regards
Francesco
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour