VBscript的function若要回傳物件,記得用Set
[vb]
Function hello
Dim obj
Set obj = CreateObject("Scripting.Dictionary")
Set hello = obj
End Function
[/vb]
不挑戰記憶力的技術筆記
VBscript的function若要回傳物件,記得用Set
[vb]
Function hello
Dim obj
Set obj = CreateObject("Scripting.Dictionary")
Set hello = obj
End Function
[/vb]