Skip to content
本页内容

GetCustomListNum (方法)

返回字符串数组的自定义序列号。使用本方法既可对内置序列进行匹配,也可对自定义序列进行匹配。

说明

如果没有对应序列,则使用本方法将出错。

参数

属性数据类型必填说明
ListArrayAny必填字符串数组。

返回值

int

示例

python
#本示例删除一个自定义序列
def test():
    customLN = Application.GetCustomListNum(["cogs", "sprockets", "widgets", "gizmos"])
    Application.DeleteCustomList(customLN)
python
#本示例显示自定义序列号
def test():
    print(Application.GetCustomListNum(["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]))