function MAIN() LOCAL AADBF := {}, ; I := 0, ; OBRW
REQUEST DBFCDX Rddsetdefault( "DBFCDX" )
ERASE ("TEST.DBF") ERASE ("TEST.CDX")
aADBF := {} AADD(aADBF, {"NAME", "C", 40, 0 }) AADD(aADBF, {"NUMID", "N", 06, 0 }) DBCREATE("TEST", aADBF) USE TEST NEW INDEX ON NUMID TAG "NUMID" INDEX ON NAME TAG "NAME" TEST->(ORDSETFOCUS("NAME"))
FOR I = 1 TO 100 APPEND BLANK REPLACE TEST->NUMID WITH I REPLACE TEST->NAME WITH "NAME" + STR(I,3) NEXT
TEST->(DBGOTOP())
DEFINE WINDOW oWnd FROM 0,0 TO 23,78 oBrw := TXBrowse():New( oWnd )
I am testing your program and I am not facing any problem here. The edited value is correctly shown at the right place and browse painted correctly. I have already downloaded 8.04 but I think 8.04 and 8.03 may not be much different.
Refresh( .t. )'s intended behavior is to GoTop. Normally we should use Refresh only. We should use Refresh(.t.) when we want gotop also.
> oBrw:bBookMark := {| n | iif( n == nil,TEST->(RecNo()), TEST->(dbgoto(n)) ) } // Required! >
Actually this is not necessary. SetRDD assigns exactly the same code block to :bBookMark. Assigning it once again in our code is only a duplication.
Am I missing anything? Can you tell me how to reproduce your problem?
I am just editing at line name 8 and replacing the 8 with 3a value then enter, i can reproduce the problem every time. I am using standard fwh 8.03 and standard xbrowse from fwh not modified. Maybe your copy of xbrowse is different ?
Would you mind building the sample with standard xbrowse from fwh and let me know if you get the same result ? I have not yet installed fwh 8.04 (planned this week end) but as you said i guess there should not be a difference in xbrowse.
> I am just editing at line name 8 and replacing the 8 with 3a value then enter, > Yes this is what I have done. I always use FWH original code only for this forum postings. I have used 8.04 and now tested by linking with 8.03 xbrowse prg. both give me the same results.
You said you can not reproduce the problem always. So I shall also keep a watch and if this happens occassionally to me. It appears lot of improvement has been made recently in this area recently.
This is very strange. I reproduce the problem everytime.
In fact the problem appears everytime you try to set a lower key than your current one, i mean a key that should be displayed before.
What happens is the new line is diplayed at the proper place and at the previous line also which is bad. in my sequence i had 1 , 2 ,34,5,6,7,8,9... i replace 8 with 3a i should have 1,2,3,3a,4,5,6,7,9.... the 7 is replaced with 3a also this is causing the bad refresh
I hope i made it clear, did you try to set a lower key ? in case of a upper key that will force the page to change, refresh is OK
I agree that xbrowse has made a lot of improvements.
> n fact the problem appears everytime you try to set a lower key than your current one, i mean a key that should be displayed before. > Yes. I have done that only. I have no issues Anyway now i shall complie with 8.03 xbrowse code "once again". I shall get back in a few minutes