oGet[ 4 ] : bKeyDown := { | nKey | ::KeyGet4( nKey, oDlg ) }
Function KeyGet4 ?? ahi algo en ella que causa este efecto ó no?
//----------------------------------------------------------------------------//
Method KeyGet4( nKey, oDlg ) Class TCobro
//----------------------------------------------------------------------------//
Switch nKey
Case VK_RETURN
If( Round( ::nTCobrarBk, 2 ) == Round( ::nContado, 2 ) )
::RealizaPago()
Else
::MenuContado( oDlg )
End
Exit
Case VK_F9
AEval( ::aFacturas, { | x | x[ 1 ] := .f. } )
::oBrw1 : Refresh()
::nContado := 0
::nTotal := 0
oGet[ 4 ] : Refresh()
oGet[ 4 ] : Disable()
::oBrw1 : Enable()
::oBrw1 : GoTop()
::oBrw1 : aCols[ 5 ] : cFooter := Transform( ::nTotal, '@E 99,999,999.99' )
::oBrw1 : SetFocus()
Exit
EndSwitch
Return 0
//----------------------------------------------------------------------------//
Method KeyGet4( nKey, oDlg ) Class TCobro
//----------------------------------------------------------------------------//
Switch nKey
Case VK_RETURN
If( Round( ::nTCobrarBk, 2 ) == Round( ::nContado, 2 ) )
::RealizaPago()
Else
::MenuContado( oDlg )
End
Exit
Case VK_F9
AEval( ::aFacturas, { | x | x[ 1 ] := .f. } )
::oBrw1 : Refresh()
::nContado := 0
::nTotal := 0
oGet[ 4 ] : Refresh()
oGet[ 4 ] : Disable()
::oBrw1 : Enable()
::oBrw1 : GoTop()
::oBrw1 : aCols[ 5 ] : cFooter := Transform( ::nTotal, '@E 99,999,999.99' )
::oBrw1 : SetFocus()
Exit
EndSwitch
Return( nKey )
// Return 0
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 39 guests