Page 1 of 1

Edit fields in TxBrowse

Posted: Wed Jul 02, 2008 8:46 am
by Rafael Clemente
I am using a 3-column TxBrowse and I'd like to edit the three fields of a register, one after the other. For that, I am using three bPostEdit, one for each column:

Code: Select all

bPostEdit1 := {|o,v,n|  iif( n != VK_ESCAPE, ::SaveField(1,v),)}
bPostEdit2 := {|o,v,n|  iif( n != VK_ESCAPE, ::SaveField(2,v),)}
bPostEdit3 := {|o,v,n|  iif( n != VK_ESCAPE, ::SaveField(3,v),)}
But that forces me to click on each of the three fields that I want to edit. Is there any way to make that once edited the first field, the cursor jumps automatically to the second, and enters it in edit mode?
Thanks
Rafael

Posted: Wed Jul 02, 2008 10:03 am
by Biel EA6DD
Hi Rafael,

Set to true the property lFastEdit of xBrowse object.

Code: Select all

oBrw:lFastEdit:=.T.

Posted: Wed Jul 02, 2008 11:36 am
by Rafael Clemente
Biel:
Pefect!. Thanks
Rafael