On Thu, 13 Jan 2005, pascalive wrote:

> Recently the mentioned method/property was added to Tdataset.
> I'd like to know what's the behavior of them: when is supposed to be called, 
> whats the consequence...
> 
> I'm mantaining the sqlite wrapper (TDataset) and would like to know if its 
> necessary to modify something in it

No it is not.

Suppose you want to do a scan over the dataset's records. You don't want the 
controls 
attached to it to show this 'scan', so what you do is something like this:

DS.DisableControls;
Try
  DS.First;
  While not DS.EOF do 
   begin
   // Do stuff
   DS.Next;
   end;
Finally
  DS.EnableControls;
end;

This way, if you have e.g. a grid, the grid will not scroll along during the 
loop.

Michael.

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to