|
|
|
|
|
|
|
|
|
|
Mini-Exercise
#2 -- Answer
|
|
|
|
|
|
|
v |
What
is the value of y after the form has been loaded?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Option Explicit
|
|
Dim y As Integer
|
|
|
Private Sub squid()
|
|
y = y+2
|
|
End
Sub
|
|
|
Private Sub clam()
|
|
Call squid
|
|
Call squid
|
|
End
Sub
|
|
|
Private Sub Form_Load()
|
y = 0
|
|
Call squid
|
|
|
Call clam
|
|
End
Sub
|
|
|
|
|
|
|
|
|
|
|