FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse and lFastEdit
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
xBrowse and lFastEdit
Posted: Tue Mar 30, 2010 07:27 AM

Hello

When you press ENTER (as the first key in a cell editable with lFastEdit on ) the cell is rehabilitated and we have to
press ENTER again to confirm .
Is it possible i this situation with ENTER key skip to the next cell after chek bValid , bOnPostEdit ?

Regards Maurizio

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse and lFastEdit
Posted: Thu Apr 01, 2010 02:48 PM

What you wanted is now possible with the revised build of 10.3 published today. Please review.

Regards



G. N. Rao.

Hyderabad, India
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: xBrowse and lFastEdit
Posted: Thu Apr 01, 2010 04:35 PM

Hello Nage

I download FW 10.3 but xBrowse works like before .
I check with SET CONFIRM ON and with SET CONFIRM OFF but doesn't work .

Regards Maurizio

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse and lFastEdit
Posted: Thu Apr 01, 2010 04:56 PM

Set oBrw:lEnter2Edit := .f. ( Default is TRUE )

Now pressing Enter key does not invoke edit. It goes to the next cell.
Still edit can be invoked by pressing any valid key for FastEdit and also F2 key ( like in Excel )

However bValid also is skipped.

Regards



G. N. Rao.

Hyderabad, India
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: xBrowse and lFastEdit
Posted: Thu Apr 01, 2010 06:58 PM

Thank nageswaragunupudi

With oBrw:lEnterKy2Edit := .f. it works. The problem now is that bValid is skipped.

Maurizio

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse and lFastEdit
Posted: Thu Apr 01, 2010 11:27 PM

bEditValid can be evaluated only when a Get is created. Actually bEditValid is called with paramters oGet and oCol, while exiting a Get.
We need to choose either to jump the column or enter into Get.

If you want to take some action when user moves from column to column, you can use bChange codeblock. Normally bChange codeblock is called when Row is changed. If we set oBrw:lColChangeNotify := .t., bChange is evaluated even when user moves from column to column, with .f. as parameter.

oBrw:lColChangeNotify := .t.
oBrw:bChange := { | lRowChange | If( lRowChange, <...>, <..colchangecode> ) }

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion