Skip to content

GetCustomListNum (方法)

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

说明

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

参数

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

返回值

Long

示例

javascript
/*本示例删除一个自定义序列。*/
function test() {
    let customLN = Application.GetCustomListNum(["cogs", "sprockets", "widgets", "gizmos"])
    Application.DeleteCustomList(customLN)
}
javascript
/*本示例显示自定义序列号。*/
function test() {
    console.log(Application.GetCustomListNum(["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]))
}