xBrowse and lFastEdit

xBrowse and lFastEdit

Postby Maurizio » Tue Mar 30, 2010 7: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
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: xBrowse and lFastEdit

Postby nageswaragunupudi » Thu Apr 01, 2010 2: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
User avatar
nageswaragunupudi
 
Posts: 10628
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse and lFastEdit

Postby Maurizio » Thu Apr 01, 2010 4: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
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: xBrowse and lFastEdit

Postby nageswaragunupudi » Thu Apr 01, 2010 4: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
User avatar
nageswaragunupudi
 
Posts: 10628
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse and lFastEdit

Postby Maurizio » Thu Apr 01, 2010 6:58 pm

Thank nageswaragunupudi

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

Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: xBrowse and lFastEdit

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10628
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

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