这概述了我想要做的事情.
这对我不起作用,目前还不清楚为什么.
提前感谢您的帮助.
Sub mySub()
dim myDict as Dictionary
myDict=new Dictionary
myDict=myFunc()
End Sub
Function myFunc()
dim myDict2
set myDict2 = new Dictionary
'some code that does things and adds to myDict2'
myFunc=myDict2
End Function
Run Code Online (Sandbox Code Playgroud)