还可以用Format() DELPHI中的例子: This example displays a message on the form抯 status bar indicating the table抯 record count after a record is deleted.procedure TForm1.Table1AfterDelete(DataSet: TDataSet); begin StatusBar1.SimpleText := Format('There are now %d records in the table', [DataSet.RecordCount]); end;
DELPHI中的例子:
This example displays a message on the form抯 status bar indicating the table抯 record count after a record is deleted.procedure TForm1.Table1AfterDelete(DataSet: TDataSet);
begin
StatusBar1.SimpleText := Format('There are now %d records in the table', [DataSet.RecordCount]);
end;