xBrowse Initial edit values

xBrowse Initial edit values

Postby vilian » Wed Jul 12, 2017 1:32 pm

Hi Guys,

Is there some way to define an initial value for a xbrowse column, IF a cell of this column is edited ?

I have tried with bEditValue, but don't work...
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: xBrowse Initial edit values

Postby nageswaragunupudi » Wed Jul 12, 2017 3:50 pm

Code: Select all  Expand view
#include "fivewin.ch"

function Main()

   local oDlg, oBrw

   USE CUSTOMER NEW ALIAS CUST SHARED

   DEFINE DIALOG oDlg SIZE 600,400 PIXEL TRUEPIXEL

   @ 20,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
      DATASOURCE "CUST" ;
      COLUMNS "FIRST", "CITY", "SALARY" ;
      CELL LINES FASTEDIT NOBORDER

   WITH OBJECT oBrw
      :nEditTypes    := EDIT_GET
      WITH OBJECT :Salary
         :bOnPreEdit := { |o| o:oEditGet:cText := 0 }
      END
      :CreateFromCode()
   END

   ACTIVATE DIALOG oDlg CENTERED

return nil
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse Initial edit values

Postby vilian » Wed Jul 12, 2017 5:32 pm

Thank you ;)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 103 guests