Hola.
Necesito guardar una copia del valor de una celda en xbrowse antes que sea cambiada.
existe el bGetFocus() en xbrowse?
oCol:bOnPostEdit = { | oCol, xVal, nKey | If( nKey == VK_RETURN, calcItemNota(xVal),) }
oCol:bEditValid = { | oGet | validaItem(oGet,oBrwItno:nArrayAt) }
oCol:bEditValue = {|| if(Len( aDevolu ) > 0 , aDevolu[oBrwItno:nArrayAt]["devolucion"] ,0 ) }
:aCols[ 4 ]:bStrData := { || IIf( ! Empty( ::aPRoductos[ ::oBrw:nArrayAt, 4 ] ), trans( ::aProductos[ ::oBrw:nArrayAt, 4 ], ), ) }
:aCols[ 4 ]:bEditWhen := { || ! Empty( ::aProductos[ ::oBrw:nArrayAt, 3 ] ) }
:aCols[ 4 ]:bOnPostEdit := { | oCol, xVal, nKey | ;
::aproductos[ ::oBrw:narrayat, 8 ] := ::aproductos[ ::oBrw:narrayat, 8 ] - ::aproductos[ ::oBrw:narrayat, 4 ], ;
oCol:VALUE := xVal, ;
::aproductos[ ::oBrw:narrayat, 8 ] := ::aproductos[ ::oBrw:narrayat, 8 ] + xVal ;}
:aCols[ 4 ]:bEditValid := { | oGet | ::valido( oGet, 4 ) }
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 68 guests