主题
DeleteCustomList (方法)
删除一个自定义序列。
说明
如果列表数字小于 5 或者没有匹配的自定义序列,则使用本方法将产生错误。
参数
属性 | 数据类型 | 必填 | 说明 |
---|---|---|---|
ListNum | int | 必填 | 自定义序列数字。此数字必须大于或等于 5(ET 有四个不可删除的内置自定义序列)。 |
示例
python
#本示例删除一个自定义序列
def test():
n = Application.GetCustomListNum(["water", "lemon", "apple"])
Application.DeleteCustomList(n)
python
#本示例演示添加一个自定义序列,通知用户后,删除此自定义序列
def test():
customlist = ["water", "lemon", "apple"]
Application.AddCustomList(customlist)
print("添加成功,即将删除此自定义序列!")
n = Application.GetCustomListNum(customlist)
Application.DeleteCustomList(n)