我在下面写了一个代码,我将 ArrayList 对象分配为字典项。但是当我运行 Sort 方法时没有发生任何事情。我在下面做错了什么吗?
Set Dic = CreateObject("Scripting.Dictionary")
Set ArrListChildDetails = CreateObject("System.Collections.ArrayList")
For Row=3 to ob1.Range.Rows.Couny
For I=2 to ob1.Range.Columns.Count
ArrListChildDetails.Add(ob.Cells(Row,I))
Next
Dic(ob.Cells(Row,1))=ArrListChildDetails
Next
For Each D in Dic.Keys
Dic(d).Sort() 'It is not working whereas Dic items are ArrayList object
Next
谢谢,