根据Hash的列名获取其数字下标
Easp.List.Index index
index | String (字符串) |
非空字符串 |
Integer (整数) | 如果Hash存在指定列名的元素则返回其数字下标,不存在则返回-1。 |
此方法一般用于Hash数组。
'创建一个List对象 Set list = Easp.List.New list.Hash = "zero:零 one:壹 two:贰 three:叁" Easp.W "Hash数组中列名为""one""的元素的数字下标是:" & list.Index("one")