FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse: bOnRowLeave
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
xBrowse: bOnRowLeave
Posted: Fri Apr 17, 2020 02:55 AM

I want to get the data of the row which user just left.

I can't use :bChange as :aRow() will show the data of current row I'm at.

I saw and tried :bOnRowLeave but my test seems to indicate it also doesn't give the result I'm looking for.

What else can I try?
TIA

p.s. How to get oBrw:report() to print logical field as Yes or No instead of .t., .f.?

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: xBrowse: bOnRowLeave
Posted: Fri Apr 17, 2020 03:17 AM

Try with bLButtonUp

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: xBrowse: bOnRowLeave
Posted: Fri Apr 17, 2020 03:31 AM
cnavarro wrote:Try with bLButtonUp


Doesn't work when navigating with keyboard. If navigate with mouse it'll also return the current row not the previous active row
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: xBrowse: bOnRowLeave
Posted: Fri Apr 17, 2020 06:46 AM

Tried :bEditValid but seems checkbox won't trigger it

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse: bOnRowLeave
Posted: Fri Apr 17, 2020 03:18 PM
I saw and tried :bOnRowLeave but my test seems to indicate it also doesn't give the result I'm looking for.


:bOnRowLeave was actually intended for this purpose only, but it is not working reliably :-)
Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: xBrowse: bOnRowLeave
Posted: Sat Apr 18, 2020 04:32 AM

Rao,
I can do a workaround using bEditValid for Gets but has no solution for checkboxes.

Any idea?

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse: bOnRowLeave
Posted: Sat Apr 18, 2020 04:43 AM

We need to improve on the usage of bOnRowLeave.
Will you be able to do some tests?

Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: xBrowse: bOnRowLeave
Posted: Mon Apr 20, 2020 01:33 AM

Sure Rao. What do you need ?

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion