' Visual Basic 2008 9.0 .NET Examples - Local, Module and Static Variables - Procedures and Functions : Module Example2 Dim x As Integer = 1 ' (1) Sub Main() Test1() ' Dim x As Integer = 2 ' (2) Console.WriteLine(x) ' (3) ' Test2(x) ' (4) ' Console.ReadLine() End Sub Sub Test1() Console.WriteLine(x) ' (5) End Sub Sub Test2(ByVal x As Integer) ' (6) x += 1 ' (7) Console.WriteLine(x) ' (8) End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.