the method LostFocus in DbCombo CLASS do not work fine,
is impossible to execute any instruction into a bLostFocus block!
I modified the LostFocus method
this is the new method:
- Code: Select all Expand view RUN
//----------------------------------------------------------------------------//
METHOD LostFocus( hWndGetFocus ) CLASS TDBCombo
local nAt := ::SendMsg( CB_GETCURSEL )
if nAt != CB_ERR
::nAt = nAt + 1
Eval( ::bSetGet, ::aItems[ ::nAt ] )
else
Eval( ::bSetGet, GetWindowText( ::hWnd ) )
endif
::cSearchKey:=""
Super:LostFocus( hWndGetFocus )
return nil
//----------------------------------------------------------------------------//
for me work fine.