From 8825070c92cfabd6fc4e2f5896103ef8b4800a33 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期五, 07 十一月 2025 16:02:08 +0800
Subject: [PATCH] update
---
jrj/xframe/xcontrol/xexcel.hpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/jrj/xframe/xcontrol/xexcel.hpp b/jrj/xframe/xcontrol/xexcel.hpp
index e562cdc..ae6b81d 100644
--- a/jrj/xframe/xcontrol/xexcel.hpp
+++ b/jrj/xframe/xcontrol/xexcel.hpp
@@ -52,10 +52,12 @@
}
xstring GetCellString(int row, int col)
{
- return xstring(GetKExcel()->GetCellString(row, col),true);
+ wchar_t* value = GetKExcel()->GetCellString(row, col);
+ if(value)return xstring(value,true);
+ return xstring(L"", false);
}
- int SetICellString(int row, int col, const wchar_t* val)
+ int SetCellString(int row, int col, const wchar_t* val)
{
- return GetKExcel()->SetICellString(row, col, val);
+ return GetKExcel()->SetCellString(row, col, val);
}
};
\ No newline at end of file
--
Gitblit v1.9.3