Hi!
METHOD LINEDOWN( lMouse ) CLASS HBrowse
LOCAL minPos, maxPos, nPos, colpos
IF Eval( ::bSkip, Self, 1 ) == 0 //Best code to read
Eval( ::bGoBot, Self ) //Here BUG! not found this line! EOF
METHOD LINEUP() CLASS HBrowse
LOCAL minPos, maxPos, nPos
IF Eval( ::bSkip, Self, - 1 ) == 0 //Here not bug but best code
Eval( ::bGoTop, Self )
Fix found José Quintas make example/test with ADO class
Best regards,
Itamar M. Lins Jr.
Hi!
Oops, this fix cause same problem with DBF.
Best regards,
Itamar M. Lins Jr.
Hi!
Now fix of fix...
Works fine with DBF, ADO, ARRAY
Best regards,
Itamar M. Lins Jr.
Hello Itamar,
i tried to retrace the bug, but
i cannot find it.
As a member of the HWGUI developers team, i must check all
modifications carefully before commit.
Do do this, i need more information:
1.) Please post a full description of the bug.
What is "ADO"?
If possible, with screen shots.
2.) Please tell me the Versions (GTK/LINUX or WinAPI or both)
where the bug appeared.
3.) Need a sample program demonstrating the bug.
Is it an existing one of "samples" or "samples/gtk_samples" ?
(Please give filename)
If not, please post one.
4.) I am confused about your code snippets, there are some
diffences to the recent file in HWGUI source code
(hbrowse.prg ?)
Please post your version of modified file(s).
If more than one file, pack it in a zip archive,
because only one file can be posted at every message.
It is easier for me to compare it with "WinMerge".
With regards,
MNI TX, 73 es 55 de
DF7BE, Wilfried
Hi!
This sample demonstre the problem with ADO.
Description of problem, using ADO not stoping in EOF() with DOWN key.
TestADO_DBF.prg first use TestADO_DBF.prg without fix. The fix is below.
hBrowse.prg with fix. Only in METHOD LINEDOWN but a cosmetic LINEUP method.
Best regards,
Itamar M. Lins Jr.
Last edit: Itamar M. Lins Jr. 2020-09-16
Hello Itamar,
Committed with r2883.
I needed to make some more modifications, because the browse in CLLOG crashes with
"Argument Error: ==". So the former sequence must be strict done with database.
I added an inline comment in hbrowse.prg to explain this. The default of BROWSE is "DATABASE".
I tested the modifications with your delivered sample (committed as Testado.prg), colrbloc.prg and
my app CLLOG.
During the development i found an error with "EDITABLE", crashes wenn appending a new element, i must look for it if i had time.
MNI TNX for your support.
Please use in future the feature "Add attachment" (visible above the "Post" button) for big files.
Thanks.
Please give feedback, if you have success, so that Alexander Kresin can close this ticket.
With regards,
MNI TNX, 73 es 55 de
DF7BE, Wilfried
Hi!
Works fine! Tks!
Best regards,
Itamar M. Lins Jr.