On Sun, 09 Nov 2008, Szak�ts Viktor wrote:
> Hi Pritpal,
>> What I can see from above is that ACCESS/ASSIGN methods
>> can not be overloaded in another class is inherited from the current one.
>> SETGET methods can be overloaded. This is a basic requirement to
>> simulate Xbase++ class modal.
>> Am
Hi Pritpal,
What I can see from above is that ACCESS/ASSIGN methods
can not be overloaded in another class is inherited from the current
one.
SETGET methods can be overloaded. This is a basic requirement to
simulate Xbase++ class modal.
Am I right ?
Sorry, I don't know if they can be over
Hello Viktor
Szakáts Viktor wrote:
>
> Pls explore source/tget.prg, there you can find examples
> for both this method and ACCESS/ASSIGN method. Latter can
> help on performance.
>
Here is the code snippet from tget.prg
METHOD block( bBlock ) SETGET
ACCESS changed METHOD getChanged()
Hi Pritpal,
METHOD lbClick( xParam ) CLASS WvgCrt
if hb_isNil( xParam ) .or. hb_isBlock( xParam )
::sl_lbClick := xParam
RETURN NIL
Should be: RETURN ::sl_lbClick
endif
if hb_isArray( xParam ) .and. hb_isBlock( ::sl_lbClick )
eval( ::sl_lbClick, xParam, NIL, Self )
e
Hello
Just to be sure that I am doing right at the start
here is the code I am employing with methods and
instance variables with the same name.
Please guide me if there is better and efficient way to
accomplish the same.
CLASS WvgWindow
DATA lbClick
METHOD Init()
METHOD lb
'METHOD lbClick( bBlock ) SETGET' is what you probably need.
Brgds,
Viktor
On 2008.11.06., at 5:02, Pritpal Bedi wrote:
Hello All
THE TOPIC IS BEING REVISITED
--
CLASS WvgWindow
DATA lbClick
METHOD Init()
METHOD lbClick
ENDCLASS
METHOD init() CLASS Wv
Hello All
THE TOPIC IS BEING REVISITED
--
CLASS WvgWindow
DATA lbClick
METHOD Init()
METHOD lbClick
ENDCLASS
METHOD init() CLASS WvgWindow
RETURN SELF
METHOD lbClick( bBlock ) CLASS WvgWindow
hb_toOutDebug( 'WvgWindow:lbClick: ['+valtype( bBl