Page 2 of 2
Posted: Sat Apr 12, 2008 8:55 am
by Richard Chidiak
Mr NageswaraRao
Yes this is exactly what we would expect
Richard
Posted: Sat Apr 12, 2008 11:27 am
by nageswaragunupudi
Mr Richard
Working with XBrowse 8.04 I found out more.
This is the only code that is needed:
Code: Select all | Expand
@ 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.
Posted: Mon Apr 14, 2008 11:34 am
by Richard Chidiak
Mr NageswaraRao
I have installed and tested with fwh 8.04
The refresh problem is ok now
the new syntax is not working for me , i get an error message
Error occurred at: 04/14/08, 13:32:00
Error description: Error BASE/1005 Message not found: TXBRWCOLUMN:_CSORTODER
Stack Calls
===========
Called from: tobject.prg => TXBRWCOLUMN:ERROR(172)
Called from: tobject.prg => TXBRWCOLUMN:MSGNOTFOUND(205)
Called from: tobject.prg => TXBRWCOLUMN:_CSORTODER(0)
Called from: XBROWSE.PRG => XBROWSENEW(0)
Called from: test2.prg => MAIN(34)
Richard
Posted: Mon Apr 14, 2008 11:52 am
by Antonio Linares
Richard,
Please download 8.04 again. Sorry for the inconveniencies, thanks