FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Disk activity when using a record
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Disk activity when using a record
Posted: Fri Feb 03, 2023 03:58 PM

I wonder... (Antonio, ChatGPT is not accessible, to much hits at this time )))))

When a dbf is on a record I have the (BAD) habit of doing calculations like :

                     nAankoop = artikel->new_bruto -  (artikel->new_bruto * artikel->korting)/100

                     nAankoop = nAankoop -  (new_bruto * artikel->korting2)/100

                     replace artikel->new_aankoop with nAankoop

                     artikel->new_marge = ((artikel->new_bruto/artikel->new_aank)*100)-100

                     artikel->new_diff  = ((artikel->new_aank/artikel->aankoop)*100)-100

will there always be a disk access for each time I use a item artikel->.... ? or will the data come from the cach of the computer ?

Just to be sure ! . I can easily change my workflow in using a hash or tdatabase for this.

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Disk activity when using a record
Posted: Sat Feb 04, 2023 07:34 AM

Dear Marc,

I would say that the data come from the cach of the computer

Only when you move to a different record, or you modify the data, the disk will be accessed

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion