Mr Richard
Working with XBrowse 8.04 I found out more.
This is the only code that is needed:
- Code: Select all Expand view
@ 0,0 XBROWSE oBrw COLUMNS "Name" SORT "NAME" ALIAS "TEST" COLOR CLR_BLUE,CLR_WHITE
oBrw:aCols[ 1 ]:nEditType := EDIT_GET
Even bOnPostEdit is provided by default. We do not have to write the PostEdit block unless we want more complex operation.
Another interesting thing is now xbrowse will automaticall decide whether it has to refresh the row only or the entire browse depending on whether we edited a sorted column or other column. So it is not even necessary for us to write obrw:Refesh().
When you download 8.04, please try replacing all the code with the above two lines only.