seems to be really slow: - when I scroll through all the records or by pages Are you now using oLotto:setBuffer(.F.)? - when I go to print a record and refresh the xbrowse (doing also setfocus) Why are you refreshing the browse after printing? - when I insert a record and ...
... I was right AND I was wrong. You can turn off buffering, but not by changing the class variable lBuffer directly. You must do it this way: oDBF:setBuffer(.F.) Technically, lBuffer should be a hidden variable that cannot be changed by the programmer. OOP languages like Smalltalk, do not allow ...
... Ok. Si descomentas esta linea del codigo que he puesto, veras como funciona ok, sin cambiar nada mas. IF lAdd //-> Para Anadir oDbf:SetBuffer( .T. ) oDbf:Blank() ELSE //-> Para Alterar oDbf:Load() ENDIF Este codigo es practicamente igual ...