Option ExplicitPrivate Sub Command1_Click()Dim i As IntegerFor i = 1 To 10Call show(i)Next i
End SubPrivate Sub show(ByRef x As Integer)x = x + 1Print "x="; xEnd Sub
End Sub