G
george d lake
Hi,
Quick question, should I set all my vars to Nothing when I exit a
Fucntion/Sub/Page?
Sample:
Public Sub MySub(ByVal Param1 as Integer)
Dim Var1 as String
Dim Var2 as TextBox
Dim Var3 as Integer
etc....
Try
Code.....
Catch oError as Exception
Code
Fianlly
Var1 = Nothing
Var2 = Nothing
Var3 = Nothing
End Try
End Sub
Should I do this for every function/Sub/Page?
Quick question, should I set all my vars to Nothing when I exit a
Fucntion/Sub/Page?
Sample:
Public Sub MySub(ByVal Param1 as Integer)
Dim Var1 as String
Dim Var2 as TextBox
Dim Var3 as Integer
etc....
Try
Code.....
Catch oError as Exception
Code
Fianlly
Var1 = Nothing
Var2 = Nothing
Var3 = Nothing
End Try
End Sub
Should I do this for every function/Sub/Page?