From acea813ed117d80a37839e44a5845368fb7880a8 Mon Sep 17 00:00:00 2001 From: csh Date: Fri, 28 Oct 2022 17:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSetSheetName=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- funcext/TSOffice/worksheet/xlsxWorkBook.tsf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');