G
Guest
Say you create a DataSet in a function in your Data Access layer, then pass
it back to your business layer, why is it not out-of-scope in your business
layer?
If you look at the below article, it states
"If you declare a variable within a procedure, but outside of any If
statement, the scope is until the End Sub or End Function. The lifetime of
the variable is until the procedures ends."
http://msdn2.microsoft.com/en-us/library/ms973875.aspx
it back to your business layer, why is it not out-of-scope in your business
layer?
If you look at the below article, it states
"If you declare a variable within a procedure, but outside of any If
statement, the scope is until the End Sub or End Function. The lifetime of
the variable is until the procedures ends."
http://msdn2.microsoft.com/en-us/library/ms973875.aspx