FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Edit fields in TxBrowse
Posts: 365
Joined: Sat Oct 08, 2005 07:59 PM
Edit fields in TxBrowse
Posted: Wed Jul 02, 2008 08:46 AM
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:
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
Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
Edit fields in TxBrowse
Posted: Wed Jul 02, 2008 10:03 AM
Hi Rafael,

Set to true the property lFastEdit of xBrowse object.

oBrw:lFastEdit:=.T.
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 365
Joined: Sat Oct 08, 2005 07:59 PM
Edit fields in TxBrowse
Posted: Wed Jul 02, 2008 11:36 AM

Biel:
Pefect!. Thanks
Rafael

Continue the discussion