if cursor_status('global','myformula')=-3 and cursor_status('local','myformula')=-3
begin
print '不存在'
end
else
begin
print '存在'
end
检查公式是否存在
本文通过一段代码示例,展示了如何使用ifcursor_status函数检查全局和局部环境中名为'myformula'的公式是否存在。如果该公式在两个环境中都不存在,则输出'不存在';反之,则输出'存在'。
if cursor_status('global','myformula')=-3 and cursor_status('local','myformula')=-3
begin
print '不存在'
end
else
begin
print '存在'
end

被折叠的 条评论
为什么被折叠?