-----Messaggio Originale-----
Da: "Francesco Saverio Giudice" <[email protected]>
A: "Harbour Project Main Developer List." <[email protected]>
Data invio: lunedì 23 febbraio 2009 0.45
Oggetto: Re: [Harbour] TGet: setting cursor position to ::nMaxLen + 1
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.
Crystal clear, thank you. Unfortunately, replicate the function could mean
update it on any changes. But it seems I have no other way out. :-(
EMG
--
EMAG Software Homepage: http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page: http://www.emagsoftware.it/emgmusic
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour