' Visual Basic 2008 9.0 .NET Examples - Local, Module and Static Variables - Procedures and Functions : Module Exercise2Task Dim a As Integer = 1 Sub Main() Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer Dim e As Integer ' a += 2 ' Test(a, b + e, c + 1, d) ' Console.WriteLine(a) Console.WriteLine(b) Console.WriteLine(c) Console.WriteLine(d) Console.WriteLine(e) ' Console.ReadLine() End Sub Sub Test(ByVal b As Integer, ByRef c As Integer, _ ByVal d As Integer, ByRef e As Integer) b += a c += b d += c e += d End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.