Re: Number Records of filerd Table


[ Delphi Forum -- by DelphiLand ]

Posted by webmaster Guido on January 09, 2004 at 20:37:23:

In Reply to: Number Records of filerd Table posted by liza on January 02, 2004 at 07:50:49:

: how can obtain number of records's Table , when table has filtered (similar to Tablet.Recordcount)
------------------------

I think that there is no standard Delphi function to get the number of filtered records, so you have to count them in code:

var
  Counter: integer;
begin
  Counter := 0;
  Table1.First;
  while not Table1.EOF do begin
    inc(Counter);
    Table1.Next;
  end;
  // do something with Counter:...
  ...
end; 

Related Articles and Replies:



[ Delphi Forum ]
[ DelphiLand: free Delphi source code, tips, tutorials ]