Spotfire IronPython脚本:删除数据表 [英] Spotfire IronPython script: Delete a data-table

查看:67
本文介绍了Spotfire IronPython脚本:删除数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Iron-python的新手.如果有人可以告诉我如何使用iron-python完全删除数据表,我将必须承担责任.

I am new to iron-python. I would be obliged if anyone can tell me how to completely delete a data-table using iron-python?

推荐答案

您可以使用以下方法轻松完成此操作:

you can do this pretty easily with:

dt_name = "Data Table" # name of the data table

dt = Document.Data.Tables[dt_name]

Document.Data.Tables.Remove(dt)

当然,您可以将其全部压缩为:

of course you can compress this all to:

Document.Data.Tables.Remove(Document.Data.Tables["Data Table"])

这篇关于Spotfire IronPython脚本:删除数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆