FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Get on Button Bar
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM

Get on Button Bar

Posted: Sun Jun 19, 2011 02:42 AM
I am having problems with a get on a buttonbar

type a value in the get and press enter - the first MsgInfo is blank the second MsgInfo has the value typed in.
Using a valid clause and using the bKeyDown to process the valid produces the same result
Code (fw): Select all Collapse
 @15,65 GET oFindInvc VAR cJbNo picture '@!' UPDATE of oBar;
            SIZE 60,20 ;
            FONT oFont ;
            PIXEL
            oFindInvc:bKeyDown = { | nKey | If( nKey == VK_RETURN, (MsgInfo(cJbNo),MsgInfo(cJbNo)),) }

What I have is a buttonbar with an Exit and Find Buttons and a get field (the get field is hidden initially) - when the
find button is pressed the get is shown - the user enters a value and hits the enter key - the value is searched for and
if found sets a scope and displays a browse with the resulting records.

Using the xHarbour and FWH 11.05

Colin
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Get on Button Bar

Posted: Sun Jun 19, 2011 08:26 AM
Try

Code (fw): Select all Collapse
oFindInvc:bKeyDown = { | nKey | If( nKey == VK_RETURN, (oFindInvc:Assign(),MsgInfo(cJbNo)),) }


If it doesn't work, can I see a little sample of the problem that I can compile and run here, please?

EMG
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM

Re: Get on Button Bar

Posted: Sun Jun 19, 2011 08:48 AM

Thanks Enrico - that worked fine.

Cheers

Colin

Continue the discussion