dlgSave := TSaveDialog.Create(nil); dlgSave.filter := 'CSV文件|*.CSV'; dlgSave.DefaultExt := '*.CSV'; dlgSave.filename := '服务.CSV'; if dlgSave.Execute then begin if FileExists(dlgSave.filename) then try ) = IDYES then DeleteFile(PChar(dlgSave.filename)…