1
比方说,我们有这样的代码如下我们是否需要在Excel .xlam插件中处理对象?
'Call service
Set xmlhttp_ = CreateObject("MSXML2.xmlhttp")
xmlhttp_.Open "GET", url, False
xmlhttp_.send
result = (xmlhttp_.responseText)
sendRequest = result
我们需要处置使用后?
应该尽快,因为它超出范围自动设置。请参阅Matthew Curland在此处的回复:https://groups.google.com/forum/?hl=zh-CN&fromgroups#!topic/microsoft.public.dotnet.languages.vb/3pw-TGc9PSo – 2012-07-21 21:48:19
@Tim引用desigves是一个答案。我想我现在必须改变我的习惯... – 2012-07-21 22:34:32
@Chris - 哈,是的,我认为我从来没有真正确定我自己,但看完后,似乎很清楚,它不是必需的... – 2012-07-21 23:08:50