' Visual Basic 2008 9.0 .NET Examples - Introduction to Procedures - Procedures and Functions : Module Exercise1Task Sub Main() Dim x As Integer = 4 Dim y As Integer = 5 Dim z As Integer = 6 ' Test(x, y, z + 1) ' Console.WriteLine("Main x : " & x) Console.WriteLine("Main y : " & y) Console.WriteLine("Main z : " & z) Console.ReadLine() End Sub Sub Test(ByRef y As Integer, ByVal z As Integer, ByRef x As Integer) z ^= 2 x += z y += z ' Console.WriteLine("Test x : " & x) Console.WriteLine("Test y : " & y) Console.WriteLine("Test z : " & z) End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.