设计时双击状态栏可添加Panelsprocedure TForm1.Table1AfterOpen(DataSet: TDataSet);
begin
  StatusBar1.Panels[0].Text:=IntToStr(DataSet.RecordCount);
end;