Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting objects to nothing
Message
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Setting objects to nothing
Miscellaneous
Thread ID:
00407080
Message ID:
00407080
Views:
61
Is it neccessary to set an object = nothing when your finished with it?
public sub MySub()
    Dim wshShell As Object
    Set wshShell = CreateObject("WScript.Shell")

    ' Do some stuff with wshShell

    ' Is the following neccessary or does vb handle
    ' it by itself?
    Set wshShell = Nothing

end sub
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Next
Reply
Map
View

Click here to load this message in the networking platform