Search found 43 matches: setscope

Return to advanced search

Re: show only some records on Xbrowse ( nRecords, year)

Antonio Linares wrote:Dear Silvio,

SET FILTER is very slow

Using an index with scopes should be better


with tdatabase I not Know How make it


IF nCount > 0
nInit:=oDbf:lastrec()-nCount
nEnd:= oDbf:lastrec()
ENDIF

oDbf:setscope(0,nInit)
oDbf:setscope(1,nEnd)


then for the year ?
by Silvio.Falconi
Tue Sep 27, 2022 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 619

Re: Copy structure or create new file dbf

... open the index whenever the database object is opened. Then you set the scope and then the low and high values you want to see using oDB:setScope(xLow,xHigh). The only records read will be those you want. I tested a 1 million record DBF file using a scope to filter out about 20,000 records ...
by James Bott
Wed Jun 08, 2022 7:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy structure or create new file dbf
Replies: 8
Views: 599

Re: Speedtest DBF vs. LetoDB and mySQL

Marc, First I notice that you are calling a SETSCOPE function, and refreshing two images for every record movement. That is what is slowing down your browse. Try taking the entire :bChange line out and then test the speed. Also, if the images are ...
by James Bott
Mon Oct 18, 2021 11:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Speedtest DBF vs. LetoDB and mySQL
Replies: 22
Views: 1774

Re: oDbf:Delete() error

... , but when I call ut_borra() function to delete that use I have on Permission dbf a set scope Now with the new fwh ( april 2021) I can erase that setscope with setscope(nil), then I can delete all the permissions of that user with DO WHILE !oPermessi:EoF()             oPermessi:Lock()  ...
by Silvio.Falconi
Sun Jun 06, 2021 8:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oDbf:Delete() error
Replies: 15
Views: 1208

Re: New FTDN April/Abril 2021 (FWH 21.04)

... central y derecha de las columnas. Corregido. Gracias a Juan Navas por señalarlo. * TDATABASE: (fwh\source\classes\database.prg) - Nuevo método SetScope(), además del método actual OrdScope() Sintaxis: SetScope() sin parámetros: No hay acción SetScope( nil ) // elimina todos los ámbitos SetScope( ...
by Antonio Linares
Fri Jun 04, 2021 2:15 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2021 (FWH 21.04)
Replies: 8
Views: 1934

oDbf:Delete() error

... 8 characters but I put an alltrim () because it can be even less than 8 characters like for example "TEST" on the oPermessi there is a SetScope static cKey cKey:=oUtenti:Clave oPermessi:setscope(cKey) I did not understand why sometimes some records are cacenalled and other times none ...
by Silvio.Falconi
Thu Jun 03, 2021 9:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oDbf:Delete() error
Replies: 15
Views: 1208

New FTDN April/Abril 2021 (FWH 21.04)

... alignment of columns are ignored. Fixed. Thanks for Mr. Juan Navas for pointing out. * TDATABASE: (fwh\source\classes\database.prg) - New method SetScope(), in addition to the present method OrdScope() Syntax: SetScope() with no params: No action SetScope( nil ) // clear all scopes SetScope( ...
by Antonio Linares
Mon May 31, 2021 3:53 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2021 (FWH 21.04)
Replies: 8
Views: 1934

Re: TDatabase Class

... Scope to ( cLname1 )  // attempting this ???????????????????????????????????????????????    line 709  You would do this with: oCustomers:setScope( alltrim(upper(cLname1)), alltrim(upper(cLname1 )) )
by James Bott
Wed May 19, 2021 10:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase Class
Replies: 18
Views: 2076

Re: to Nages: test for tdatabase

To connect the guest archive to customers, I had thought of such a form oGuest: = tdatabase():New(...... oGuest: SetScope (0, oClienti:IdCliente) oGuest: SetScope (1, oClientiIdCliente) oGuest: Gotop () It might work ? Slowly, I convert my old program with the databases, I'm afraid ...
by nageswaragunupudi
Fri May 10, 2019 6:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: to Nages: test for tdatabase
Replies: 37
Views: 5676

Re: to Nages: test for tdatabase

To connect the guest archive to customers, I had thought of such a form oGuest: = tdatabase():New(...... oGuest: SetScope (0, oClienti:IdCliente) oGuest: SetScope (1, oClientiIdCliente) oGuest: Gotop () It might work ? Slowly, I convert my old program with the databases, I'm afraid ...
by Silvio.Falconi
Thu May 09, 2019 10:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: to Nages: test for tdatabase
Replies: 37
Views: 5676

Re: Dual index for setscope.()

Thank you for the input. I will work with those today,.
by TimStone
Fri Mar 30, 2018 3:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dual index for setscope.()
Replies: 3
Views: 805

Re: Dual index for setscope.()

DBFCDX optimizes filters if we have indexes on the fields used in the filter expression. In the above case, we need two index tags field NAME,ITEMDATEINDEX ON UPPER(NAME) TAG NAME   // do not use FIELD-> or ANY ALIAS->INDEX ON ITEMDATE TAG ITEMDATE  // do not use DTOS()INDEX ...
by nageswaragunupudi
Fri Mar 30, 2018 11:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dual index for setscope.()
Replies: 3
Views: 805

Re: Dual index for setscope.()

Hi,
In this situation , i make a temorary index with the for clause :
index on NAME to TEST FOR DATE > ... .and. DATE < ....

Good luck
Philippe
by Jack
Fri Mar 30, 2018 7:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dual index for setscope.()
Replies: 3
Views: 805

Re: Database - 17.07 - Problems

... in 1705 work fine: error description error DBCMD/2001 workarea not in use : ordscope called from : +> ordscope(0) called from : => Tdata:setscope(0) .... This problem is not reported to this topic : http://forums.fivetechsupport.com/viewtopic.php?f=3&t=34337&p=203721&hilit=odbf%3Aend#p203721 ...
by norberto
Thu Aug 24, 2017 5:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 11886

Re: Xbrowse a speed problem using SCOPE ?

... have a CUSTNO (or similar) in both files. And not allow users to change them. I am planning to do some speed tests with a DBSetRelation() & setScope() and with just OrdSetRelation() to see if there are any significant speed differences. James
by James Bott
Tue Mar 01, 2016 11:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse a speed problem using SCOPE ?
Replies: 30
Views: 9012
Next

Return to advanced search