Clear variable
Example Usage:
<%
Dim mystring, objCn
' clear a string and set it to empty or uninitialized...
mystring = "some string"
Clear mystring
' equivalent to the statement: mystring = Empty
' set an object reference to Nothing, freeing it from memory...
Set objCn = Server.CreateObject("ADODB.Connection")
Clear objCn
' equivalent to the statement: Set objCn = Nothing
%>
ASP Source Code:
<% Private Sub Clear(byRef string) If IsObject(string) Then Set string = Nothing Else string = Empty End If End Sub %>