bkeydown WITH GET using oDatabase

bkeydown WITH GET using oDatabase

Postby dagiayunus » Tue Feb 02, 2016 3:22 pm

Dear Sir,

How to use trap F2 KEY using get with oDatabase

// from sample dbf01.prg
REDEFINE GET oDbf:First ID ID_NAME OF oDlg UPDATE
oDbf:First:bKeyDown:= { |nKey| If( nKey == VK_F2, msginfo("F2 Pressed"), nil ) }

give following error
Error description: Error BASE/1005 No exported variable: BKEYDOWN

Regards
Yunus.
Regards
Yunus

FWH 21.02
dagiayunus
 
Posts: 85
Joined: Wed Nov 19, 2014 1:04 pm

Re: bkeydown WITH GET using oDatabase

Postby Marcelo Via Giglio » Tue Feb 02, 2016 3:34 pm

Hello,

change it in this way

Code: Select all  Expand view

REDEFINE GET oGet VAR oDbf:First ID ID_NAME OF oDlg UPDATE
oGet:bKeyDown:= { |nKey| If( nKey == VK_F2, msginfo("F2 Pressed"), nil ) }

 


regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: bkeydown WITH GET using oDatabase

Postby dagiayunus » Tue Feb 02, 2016 3:46 pm

Thanks Mr.Marcelo.

It works now.

Regards
Regards
Yunus

FWH 21.02
dagiayunus
 
Posts: 85
Joined: Wed Nov 19, 2014 1:04 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 68 guests