I use oBrw:lColChangeNotify := .t.
after edit a column when I confirm with Enter oBrw:bChange it was executed .
With last version 18.05 this doesn't works
This is a standard xbrwedit.prg from samples modified to highlight the error
- Code: Select all Expand view RUN
#include "FiveWin.ch"
#include "XBrowse.ch"
function Main()
local oWnd, oBrw, oCol
USE Customer
//ZAP
DEFINE WINDOW oWnd
@ 0, 0 XBROWSE oBrw OF oWnd ALIAS "Customer"
oBrw:lFastEdit = .T.
oCol = oBrw:AddCol()
oCol:bStrData = { || Customer->First }
oCol:cHeader = "First"
oCol:nEditType = EDIT_GET
oCol:bOnPostEdit = { | oCol, xVal, nKey | If( RecCount() == 0, ( DbAppend(), oBrw:Refresh() ),), If( nKey == VK_RETURN, Customer->First := xVal,) }
oCol = oBrw:AddCol()
oCol:bStrData = { || Customer->Last }
oCol:cHeader = "Last"
oCol:nEditType = EDIT_GET
oCol:bOnPostEdit = { | oCol, xVal, nKey | If( RecCount() == 0, DbAppend(),), If( nKey == VK_RETURN, ( Customer->Last := xVal, DbAppend(), oBrw:Refresh() ),) }
oBrw:CreateFromCode()
oBrw:lColChangeNotify := .t.
oBrw:bChange := {|| MyChange()}
oWnd:oClient = oBrw
ACTIVATE WINDOW oWnd
return nil
Function MyChange()
Msginfo('Change')
REturn nil