修复SetSheetName返回报错问题
This commit is contained in:
parent
2674ab8eb3
commit
acea813ed1
|
|
@ -253,10 +253,10 @@ Type xlsxWorkBook = Class
|
||||||
Function SetSheetName(sourceName, destName);
|
Function SetSheetName(sourceName, destName);
|
||||||
Begin
|
Begin
|
||||||
ind := sheetIndexMap_[ LowerCase(destName) ];
|
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) ];
|
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
|
//设置 xl/workbook.xml
|
||||||
workbook := GetXmlFileObj('xl/workbook.xml');
|
workbook := GetXmlFileObj('xl/workbook.xml');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue