- Joined
- Jul 9, 2012
- Messages
- 24
- Reaction score
- 0
I seem to be confused by these two concepts.
As a is declared at the module level, Secondproc can "read" it.
This is an example of scope but what is lifetime?
Thanks
Code:
Dim a As Integer
Sub Firstproc
a = 10
Call Secondproc
End Sub
Sub SecondProc
Dim b as Integer
b = a
End Sub
As a is declared at the module level, Secondproc can "read" it.
This is an example of scope but what is lifetime?
Thanks