'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 WvgWindow
  RETURN SELF

METHOD lbClick( bBlock ) CLASS WvgWindow
  hb_toOutDebug( 'WvgWindow:lbClick: ['+valtype( bBlock )+']' )
  RETURN SELF


FUNCTION Main()
  LOCAL oWnd

  oWnd := WvgWindow():New()

  /*  This outputs WvgWindow:lbClick: []   */
oWnd:lbClick := {|| hb_toOutDebug( 'Hi, I am the instance variable!' ) }

  /*  This outputs WvgWindow:lbClick: []   */
  oWnd:lbClick()

  /*  This generates the runtime error : variable not found */
  Eval( oWnd:lbClick )

  Return nil

THE QUESTION
===========
Xbase++ provides this functionality. Do Harbour stands a chance to
have it? OR any workarounds you can suggest to simulate this behavior.

I am struck with Wvg* classes based on Xbase++ to draw a basic class
skelteton for CUI/GUI manipulation via objects.

Regards
Pritpal Bedi

--
View this message in context: 
http://www.nabble.com/Classes%3A-Methods-and-Instance-Variables-with-SAME-Name-tp20354744p20354744.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to