FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Fastedit in xBrowse is not working
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Fastedit in xBrowse is not working
Posted: Wed Jul 06, 2011 01:35 PM
Hello,

In this sample, I press enter o double click but does not edit.

Code (fw): Select all Collapse
#include "FiveWin.Ch"
#include "ord.ch"
#include "xbrowse.ch"

REQUEST DBFCDX

//----------------------------------------------------------------------------//

function Main()

   local oWnd, oBrw

   USE CUSTOMER NEW  ALIAS CUSTOMER
   GO TOP

   cAlias := Alias()


   DEFINE WINDOW oWnd

   @ 0,0 XBROWSE oBrw OF oWnd AUTOCOLS ALIAS "CUSTOMER" CELL LINES  FASTEDIT


   oBrw:lFastEdit := .t.

   oBrw:SetRDD()
   oBrw:CreateFromCode()



   oWnd:oClient   := oBrw



   ACTIVATE WINDOW oWnd MAXIMIZED
   DbCloseAll()

return  nil

//----------------------------------------------------------------------------//



Any clue?. Thank you.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Fastedit in xBrowse is not working
Posted: Wed Jul 06, 2011 01:43 PM

Hello

you should set the editable columns

Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: Fastedit in xBrowse is not working
Posted: Wed Jul 06, 2011 01:51 PM

All columns.

How do I set that?.

Thank you.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Fastedit in xBrowse is not working
Posted: Wed Jul 06, 2011 03:03 PM
Code (fw): Select all Collapse
   @ 0,0 XBROWSE oBrw OF oWnd AUTOCOLS ALIAS "CUSTOMER" CELL LINES  FASTEDIT

   oBrw:nEditTypes := EDIT_GET  // insert this line
//   oBrw:lFastEdit := .t.              // remove, because it is already set
Regards



G. N. Rao.

Hyderabad, India
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: Fastedit in xBrowse is not working
Posted: Wed Jul 06, 2011 05:44 PM

Thank you.

It works perfect.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82

Continue the discussion