xBrowse database locking problem

xBrowse database locking problem

Postby Otto » Sun Dec 30, 2012 4:05 pm

If I use for example
::oBrw:Paste( "test" )
::oBrw:Name:VarPut(( "test" ) the record is locked but not unlocked.

How can we unlock this record again.


Thanks in advance
Otto


Code: Select all  Expand view
METHOD Paste( cText ) CLASS TXBrwColumn

   local uNew, cType

   if ::cDataType $  'CM'
      if Eval( ::oBrw:bLock )
         ::Value     := Trim( cText )
      endif
   else
      uNew        := uCharToVal( cText, @cType )
      if uNew != nil
         if ::cDataType == nil .or. ::cDataType == cType
            if EVal( ::oBrw:bLock )
               ::Value  := uNew
            endif
         endif
      endif
   endif

return nil

//----------------------------------------------------------------------------//
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse database locking problem

Postby Otto » Sun Dec 30, 2012 5:09 pm

Hello Antonio,

Do you think this fix is save?
Best regards,
Otto

Code: Select all  Expand view


static FUNCTION SetColFromRDD( oCol, nFld, cAlias, aFldInfo )
...

changed to:

 oCol:bOnPostEdit  := { |o,x,n| If( n != VK_ESCAPE .and. Eval( o:oBrw:bLock ), ( o:Value := x, Eval( o:oBrw:bunLock )     ), ) }
 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse database locking problem

Postby Antonio Linares » Wed Jan 09, 2013 2:28 pm

Otto,

Yes, it seems fine to me. Is it working fine ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: xBrowse database locking problem

Postby nageswaragunupudi » Wed Jan 30, 2013 2:32 am

Fixed in version 13.01
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
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 119 guests