Re: [Harbour] Classes: Methods and Instance Variables with SAME Name

2008-11-09 Thread Przemyslaw Czerpak
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

Re: [Harbour] Classes: Methods and Instance Variables with SAME Name

2008-11-09 Thread Szakáts Viktor
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

Re: [Harbour] Classes: Methods and Instance Variables with SAME Name

2008-11-09 Thread Pritpal Bedi
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()

Re: [Harbour] Classes: Methods and Instance Variables with SAME Name

2008-11-09 Thread Szakáts Viktor
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

Re: [Harbour] Classes: Methods and Instance Variables with SAME Name

2008-11-09 Thread Pritpal Bedi
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

Re: [Harbour] Classes: Methods and Instance Variables with SAME Name

2008-11-06 Thread Szakáts Viktor
'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

[Harbour] Classes: Methods and Instance Variables with SAME Name

2008-11-05 Thread Pritpal Bedi
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