diff --git a/funcext/TSOffice/worksheet/xlsxWorkBook.tsf b/funcext/TSOffice/worksheet/xlsxWorkBook.tsf index 86ab7f9..69e1ff6 100644 --- a/funcext/TSOffice/worksheet/xlsxWorkBook.tsf +++ b/funcext/TSOffice/worksheet/xlsxWorkBook.tsf @@ -253,10 +253,10 @@ Type xlsxWorkBook = Class Function SetSheetName(sourceName, destName); Begin ind := sheetIndexMap_[ LowerCase(destName) ]; - if ifint(ind) then return array(-3, sheet2 + ' is already exist.'); + if ifint(ind) then return array(-3, destName + ' is already exist.'); ind := sheetIndexMap_[ LowerCase(sourceName) ]; - if not ifint(ind) then return array(-4, sheet1 + ' is not exist.'); + if not ifint(ind) then return array(-4, sourceName + ' is not exist.'); //设置 xl/workbook.xml workbook := GetXmlFileObj('xl/workbook.xml');