Misspelled procedure name in XLSSheetData5 (v5.20.69)

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
KenWhite
Posts: 13
Joined: Mon Jan 03, 2005 8:23 pm
Contact:

Misspelled procedure name in XLSSheetData5 (v5.20.69)

Post by KenWhite »

There is a typo in XLSSheetData5, in a method name for TXLSWorksheet:

Code: Select all

procedure ClearCell(const ACol, ARow: integer);
procedure CelarCells(const ACol1, ARow1, ACol2, ARow2: integer);   // Should be ClearCells
As this not only hides the method name from Code Insight in the IDE, but makes it impossible to locate without going through the source, is it possible to have this corrected in a future version?

Actually, it turns out that the method doesn't work at all.

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var
  StartCol, StartRow, EndCol, EndRow: Integer;
begin
  // XLS is a TXLSReadWriteII5 component placed on  the form at design-time, all properties left at default values.
  XLS[0].FillRandom('A1:D9', 100);

  if RefStrToColRow('A3', StartCol, StartRow) and  RefStrToColRow('D3', EndCol, EndRow) then
    XLS[0].CelarCells(StartCol, StartRow, EndCol, EndRow)
  XLS.SaveToFile('E:\TempData\DummyExcelFile.xlsx');
end;
Is there something I'm doing wrong here?
Ken
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Misspelled procedure name in XLSSheetData5 (v5.20.69)

Post by larsa »

Hello

ClearCell(s) delete cells but keeps any formatting (that is, formatted cells with values are converted to blank cells). The error is that this only works on formatted cells. The rest is not deleted. Will fix this and the wrong name in the next update.
Lars Arvidsson, Axolot Data
KenWhite
Posts: 13
Joined: Mon Jan 03, 2005 8:23 pm
Contact:

Re: Misspelled procedure name in XLSSheetData5 (v5.20.69)

Post by KenWhite »

Thanks, Lars.
Ken
Post Reply