FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oBrw:Refresh(.T.) don't refresh new record
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
oBrw:Refresh(.T.) don't refresh new record
Posted: Sat Apr 12, 2008 08:55 AM

Mr NageswaraRao

Yes this is exactly what we would expect

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
oBrw:Refresh(.T.) don't refresh new record
Posted: Sat Apr 12, 2008 11:27 AM
Mr Richard

Working with XBrowse 8.04 I found out more.

This is the only code that is needed:
@ 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.
Regards



G. N. Rao.

Hyderabad, India
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
oBrw:Refresh(.T.) don't refresh new record
Posted: Mon Apr 14, 2008 11:34 AM

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

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
oBrw:Refresh(.T.) don't refresh new record
Posted: Mon Apr 14, 2008 11:52 AM

Richard,

Please download 8.04 again. Sorry for the inconveniencies, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion