You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

LibreOffice Calc首次加载ScriptForge库调用FindRegex报错求助

LibreOffice Calc ScriptForge首次加载时命名参数报错问题

环境:LibreOffice Calc

我在按钮点击触发的ParseInequality函数中加载ScriptForge库,代码如下:

Function ParseInequality(inequality As String) as Variant 

    GlobalScope.BasicLibraries.loadLibrary("ScriptForge")

首次点击按钮时会弹出错误:

Basic runtime error. Named arguments are not supported by this object.

报错指向这行代码:

match = SF_String.FindRegex(leftPart, regexPattern, startPos, CaseSensitive := False)

第二次点击按钮则一切正常,我尝试用On Error Handler处理该问题,但错误会反复出现,这个方法无效。

内容的提问来源于stack exchange,提问作者Антон Сибгатулин

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 18:12:01