Hi All
Is there away to detect if a cell in browse has lost focus -
user types something in cell and then uses mouse to click checkbox in next cell - because the user did not press the enter key the
data is not saved
Regards
Colin
oBrw:aCols[ 1 ]:nEditType := EDIT_GET
oBrw:aCols[ 1 ]:bOnPostEdit := { | oCol, xVal, nKey | ;
IIF( nKey == VK_RETURN, ; // SAVED !!!
( DBSELECTAREA("ABC"), ;
NET_RLOCK( 3, 3 ), ;
("ABC")->LAST := xVal, ;
NET_ULOCK() ), ;
MsgAlert( "Old data : " + CRLF + ; // NOT saved !!!
ALLTRIM(("ABC")->LAST) + CRLF + ;
"not changed !!!", "ERROR" ) ) }
Colin Haig wrote:Hi Cristobal
I tried your suggestion - thank you - but get the following error
Called from: => TRANSFORM(0)
Called from: .\source\function\VALBLANK.PRG => CVALTOSTR(217)
Called from: C:\newdev\common\xbrowse.prg => (b)TXBRWCOLUMN:ADJUST(8281)
Called from: C:\newdev\common\xbrowse.prg => TXBRWCOLUMN:ADJUST(8350)
Called from: C:\newdev\common\xbrowse.prg => TXBROWSE:ADJUST(963)
Called from: C:\newdev\common\xbrowse.prg => TXBROWSE:INITIATE(861)
Called from: => __OBJSENDMSG(0)
Called from: => HB_EXECFROMARRAY(0)
Called from: .\source\function\HARBOUR.PRG => OSEND(219)
Called from: => HB_EXECFROMARRAY(0)
Called from: .\source\function\HARBOUR.PRG => ASEND(197)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE(669)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(944)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(275)
Called from: Input2.prg => LFCOURSE(750)
Regards
Colin
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 73 guests