How to delete a variable of Type [Object]

Can anyone suggest me, how to delete a variable of Type [Object] ?!

For Example:

Set objWMIService = GetObject(“winmgmts:” & “\” & computername & “\root\cimv2”)

If computername is reachable, the objWMIService will be set as Type “[Object]”

In a loop, if any computer is unreachable, the formerly used computer will be used. So i must delete this in the Loop.

Set objWMIService = Nothing doesn’t seem to work, also erase objWMIService doesn’t work.

Anyone any Hints for me ?

THanks in Advance

Juergen

Subject: Delete objWMIService<>

Subject: delete objWMIService doesn’t work

sorry, “<>” directly after objWMIService isn’t allowed… ?!

Subject: <> means end of message

Object deletion is done using “delete object”

Subject: I would try to set it empty, too but did not test.

Couldn’t you do your loop more efficient to not process empty stuff - if it would be a Notesview or DB - if there is no name or title, it could be simply not processed for some cases?