' Visual Basic 2008 9.0 .NET Examples - Local, Module and Static Variables - Procedures and Functions : Module Example3 Sub Main() Test1() Test1() Test1() ' Test2() Test2() Test2() ' Console.ReadLine() End Sub Sub Test1() Static x As Integer x += 1 Console.WriteLine(x) End Sub Sub Test2() Static x As Integer = 10 x += 1 Console.WriteLine(x) End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.