FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to invoke a function on pressing Enter in TwBrowse ?
Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM
How to invoke a function on pressing Enter in TwBrowse ?
Posted: Fri Mar 03, 2006 02:59 PM

Dear All,

How can I invoke a function on Pressing Enter in TwBrowse ? My following code do not seem to be working.

oBrw:bKeyChar = { | nKey | IF (nKey == 13, MyFunc(),) }

Can anybody guide me ?

TIA
Milan.

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to invoke a function on pressing Enter in TwBrowse ?
Posted: Fri Mar 03, 2006 03:27 PM
oBrw:bKeyDown  = { | nKey | IF (nKey == 13, MyFunc(),) }


EMG
Posts: 115
Joined: Mon Oct 17, 2005 04:42 AM
Re: How to invoke a function on pressing Enter in TwBrowse ?
Posted: Sat Mar 04, 2006 04:34 AM
Dear Enrico,

Yes it works. Thanks a lot.

With best regards,

Milan.

EnricoMaria wrote:
oBrw:bKeyDown  = { | nKey | IF (nKey == 13, MyFunc(),) }


EMG

Continue the discussion