Page 1 of 2
Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 10:02 am
by Silvio.Falconi
I make a test with a easy Dialog, oBar, and xbrowse but I have also problems

I sent the test to Antonio.
I really don't know how to fix it, and it's not the fault of the colors I've already tried
It's unmanageable, I can't move between records, scroll through scroollbars
the archive consists of only 6500 records, each record has 57 fields
Any suggestions?
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 10:25 am
by hmpaquito
Try on array browse
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 10:45 am
by Silvio.Falconi
hmpaquito wrote:Try on array browse
the problem if I do the array is that after I will have problems
if I want to insert a record or modify it because I will have to pass from array to dbf and vice versa it is not easy
I thought of showing one year at a time
or n extractions (for example 10,20,30,40 ... up to 500)
practically I have to rewrite the whole program and adapt it to this need
because I do statistical calculations with these numbers and forecasts
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 11:13 am
by nageswaragunupudi
Do not use MARQSTYLE_HIGHLWIN7
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 11:18 am
by Marc Venken
nageswaragunupudi wrote:Do not use MARQSTYLE_HIGHLWIN7
I did not realyse that some settings can slow down Xbrowse. In my case always dbf's.
Are there more settings to consider turning off ?
What are the best settings (to change) for best speed ?
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 11:28 am
by nageswaragunupudi
Your Lotto.dbf
Code: Select all | Expand
USE SILVIO\LOTTO VIA "DBFCDX"
XBROWSER ALIAS() SHOW RECID SETUP ( oBrw:lVThumbTrack := .t. )

Xbrowse is NOT SLOW.
You have to know how to write your programs optimally.
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 11:45 am
by nageswaragunupudi
Code: Select all | Expand
USE SILVIO\SMORFIA VIA "DBFCDX"
XBROWSER ALIAS() TITLE "106353 Records" SETUP ( oBrw:lVThumbTrack := .t. )

Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 11:49 am
by Silvio.Falconi
Nages,
I need to insert xbrowse into a dialog not with xbrowser
and I need to make SetGroupHeader and colors
see you mail
Xbrowser is fast I Know it
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 11:58 am
by Silvio.Falconi
nageswaragunupudi wrote:Your Lotto.dbf
Code: Select all | Expand
USE SILVIO\LOTTO VIA "DBFCDX"
XBROWSER ALIAS() SHOW RECID SETUP ( oBrw:lVThumbTrack := .t. )

Xbrowse is NOT SLOW.
You have to know how to write your programs optimally.
perhaps is my pc I tried the same code
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 2:52 pm
by nageswaragunupudi
I need to insert xbrowse into a dialog not with xbrowser
XBROWSER also inserts XBrowse into a Dialog.
What is the difference?
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 3:34 pm
by nageswaragunupudi
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 5:22 pm
by Marc Venken
Mr. Rao,
Is this with the code from Silvo, or a changed code ?
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 5:29 pm
by nageswaragunupudi
His code mainly.
I made only 3 small fixes which have nothing to do with xbrowse.
Re: Fwteam - Xbrowse too slow
Posted: Wed Apr 13, 2022 5:53 pm
by Silvio.Falconi
when I scroll with the horizontal bar towards the end of the record at a certain point it stops,
then when I scroll with the vertical bar it sometimes stops, if I put the bar to point the record and press the cursor keys or page up and page down,
if I press ctrl and the wheel zooms but shortly after it freezes doing nothing and it does these things too
if I enter or not the colors for each column,
even if then maybe it is my computer that is not working well because if I do you say and Nages also told me on the forum now I have some doubts
I'm working on Lenovo Miix320 with 4gb Ram with Win10 Pro
I not know why here is not fast, tomorrow I must test it on another pc
Re: Fwteam - Xbrowse too slow
Posted: Thu Apr 14, 2022 6:04 am
by Silvio.Falconi
Marc Venken wrote:Mr. Rao,
Is this with the code from Silvo, or a changed code ?
That was just a minimal example to see to fwteam just the problem I have, not is my original source of my app.